updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / xarchon / PKGBUILD
blob183f9e0ae22bb9ec030d0882428c6dcb26cdac50
1 # Contributor: Eric Forgeot < http://anamnese.online.fr >
3 pkgname=xarchon
4 pkgver=0.50
5 pkgrel=4
6 pkgdesc="a clone of the classic ARCHON game."
7 arch=(i686 x86_64)
8 url="http://xarchon.seul.org"
9 license=('GPL')
10 depends=('gtk')
11 source=(http://xarchon.seul.org/${pkgname}-${pkgver}.tar.gz http://ftp.de.debian.org/debian/pool/main/x/xarchon/${pkgname}_${pkgver}-10.2.diff.gz)
12 md5sums=('491dea5b4e61ed13cd988d1c184a8ef0 e716ee1df581a6c9d540c99127f24ca1')
15 build() {
16   cd $srcdir
17   mv ${pkgname}-${pkgver} ${pkgname}-${pkgver}.orig 
18   patch -p0 <xarchon_0.50-10.2.diff
19   cd $srcdir/${pkgname}-${pkgver}.orig
20   ./configure --prefix=/usr
21 # if you use the http://ftp.de.debian.org/debian/pool/main/x/xarchon/${pkgname}_${pkgver}.orig.tar.gz :
22 #  sed -i -e "s/\/usr\/bin\/install/\/bin\/install/g" Makefile
23 #  sed -i -e "s/\/usr\/bin\/install/\/bin\/install/g" data/Makefile
24 #  sed -i -e "s/\/usr\/bin\/install/\/bin\/install/g" src/Makefile
25   make || return 1
26   install -d $pkgdir/usr/share/xarchon/archon
27   # we copy those folders first otherwise it won't install
28   cp -fr $srcdir/${pkgname}-${pkgver}.orig/data/archon  $pkgdir/usr/share/xarchon/
29   make DESTDIR=$pkgdir install