Guest User

libmpq PKGBUILD

a guest
Apr 18th, 2014
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. # Contributor: Paolo Giangrandi <[email protected]>
  2. # Maintainer: Nathan O <ndowens.aur at gmail dot com>
  3.  
  4. pkgname=libmpq
  5. pkgver=0.4.2
  6. pkgrel=4
  7. pkgdesc="A library which can be easily used in applications and a set of tools for manipulating mpq archives."
  8. arch=('i686' 'x86_64')
  9. url="https://libmpq.org/"
  10. license="GPL2"
  11. depends=('zlib' 'sh' 'bzip2')
  12. options=('!libtool')
  13.  
  14. _gitroot=git://github.com/ge0rg
  15. _gitname=libmpq
  16.  
  17. build() {
  18. cd "$srcdir"
  19. msg "Conecting to GIT server..."
  20.  
  21. if [ -d $_gitname ] ; then
  22. cd "$_gitname" $$ git pull origin || return 1
  23. msg "The local files are updated."
  24. else
  25. msg "No previous sources found. Cloning from GIT now."
  26. git clone "$_gitroot/$_gitname" "$_gitname" || return 1
  27. fi
  28. msg "GIT checkout done or server timeout."
  29. msg "Starting to build."
  30.  
  31. # some cleanup
  32. rm -rf "$srcdir/$_gitname/build" || return 1
  33.  
  34. # prepare build dir
  35. mkdir "$srcdir/$_gitname/build" || return 1
  36. git clone -l "$srcdir/$_gitname" "$srcdir/$_gitname/build" || return 1
  37. cd "$srcdir/$_gitname/build" || return 1
  38.  
  39. # configure
  40. export PYTHON=python2
  41. ./autogen.sh
  42. ./configure --prefix=/usr
  43. make
  44.  
  45. }
  46. package() {
  47. cd "$srcdir/$_gitname/build"
  48. make DESTDIR=${pkgdir} install
  49. }
Advertisement
Add Comment
Please, Sign In to add comment