Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Contributor: Paolo Giangrandi <[email protected]>
- # Maintainer: Nathan O <ndowens.aur at gmail dot com>
- pkgname=libmpq
- pkgver=0.4.2
- pkgrel=4
- pkgdesc="A library which can be easily used in applications and a set of tools for manipulating mpq archives."
- arch=('i686' 'x86_64')
- url="https://libmpq.org/"
- license="GPL2"
- depends=('zlib' 'sh' 'bzip2')
- options=('!libtool')
- _gitroot=git://github.com/ge0rg
- _gitname=libmpq
- build() {
- cd "$srcdir"
- msg "Conecting to GIT server..."
- if [ -d $_gitname ] ; then
- cd "$_gitname" $$ git pull origin || return 1
- msg "The local files are updated."
- else
- msg "No previous sources found. Cloning from GIT now."
- git clone "$_gitroot/$_gitname" "$_gitname" || return 1
- fi
- msg "GIT checkout done or server timeout."
- msg "Starting to build."
- # some cleanup
- rm -rf "$srcdir/$_gitname/build" || return 1
- # prepare build dir
- mkdir "$srcdir/$_gitname/build" || return 1
- git clone -l "$srcdir/$_gitname" "$srcdir/$_gitname/build" || return 1
- cd "$srcdir/$_gitname/build" || return 1
- # configure
- export PYTHON=python2
- ./autogen.sh
- ./configure --prefix=/usr
- make
- }
- package() {
- cd "$srcdir/$_gitname/build"
- make DESTDIR=${pkgdir} install
- }
Advertisement
Add Comment
Please, Sign In to add comment