updated on Tue Jan 17 00:10:10 UTC 2012
[aur-mirror.git] / libmodplug-git / PKGBUILD
blob388ed6c60564864502d85e6b13de21db3265604b
1 # Contributor: Devin J. Pohly <djpohly+arch@djpohly.com>
2 # Maintainer: Devin J. Pohly <djpohly+arch@djpohly.com>
3 pkgname=libmodplug-git
4 pkgver=20100502
5 pkgrel=1
6 pkgdesc="A MOD playing library"
7 arch=(i686 x86_64)
8 url="http://modplug-xmms.sourceforge.net/"
9 license=('custom')
10 depends=('gcc-libs')
11 makedepends=('git')
12 provides=('libmodplug')
13 conflicts=('libmodplug')
14 options=('!libtool')
16 _gitroot="git://modplug-xmms.git.sourceforge.net/gitroot/modplug-xmms/modplug-xmms"
17 _gitname="libmodplug"
19 build() {
20   cd "$srcdir"
21   msg "Connecting to GIT server...."
23   if [ -d $_gitname ] ; then
24     cd $_gitname && git pull origin
25     msg "The local files are updated."
26   else
27     git clone $_gitroot $_gitname
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting make..."
33   rm -rf "$srcdir/$_gitname-build"
34   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35   cd "$srcdir/$_gitname-build/$_gitname"
37   #
38   # BUILD HERE
39   #
40   autoreconf -i
41   ./configure --prefix=/usr
42   make || return 1
43   make DESTDIR="$pkgdir/" install
45   install -D COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
46