PKGBUILDs/extra/liquidwar/PKGBUILD

29 lines
1,018 B
Bash
Raw Normal View History

2009-10-10 02:23:22 +00:00
# $Id: PKGBUILD 53616 2009-10-03 04:42:20Z eric $
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
# Maintainer: Jason Chu <jason@archlinux.org>
# Maintainer: Jeff Mickey <jeff@archlinux.org>
pkgname=liquidwar
pkgver=5.6.4
pkgrel=2
pkgdesc="A unique multiplayer wargame"
arch=('i686' 'x86_64')
url="http://www.ufoot.org/liquidwar/"
license=('GPL')
depends=('allegro')
makedepends=('python')
install=liquidwar.install
source=(http://www.ufoot.org/download/$pkgname/v5/$pkgver/$pkgname-$pkgver.tar.gz)
md5sums=('6917dd1026e6685404ffbd086f8ba374')
sha1sums=('a3006c4da9517c3af3b7bf165b2c86fa369a71c6')
build() {
cd "$srcdir/$pkgname-$pkgver"
[ "$CARCH" == "x86_64" ] && EXTRAOPTS="--disable-asm"
./configure --prefix=/usr --disable-doc-ps --disable-doc-pdf --disable-doc-php3 $EXTRAOPTS || return 1
make GAMEDIR=/usr/bin DATADIR=/usr/share/$pkgname || return 1
make DESTDIR="$pkgdir" DATADIR=/usr/share/$pkgname install || return 1
mv "$pkgdir"/usr/games/* "$pkgdir/usr/bin/"
rmdir "${pkgdir}/usr/games"
}