diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/liquidwar |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/liquidwar')
-rw-r--r-- | extra/liquidwar/PKGBUILD | 29 | ||||
-rw-r--r-- | extra/liquidwar/liquidwar.install | 16 |
2 files changed, 45 insertions, 0 deletions
diff --git a/extra/liquidwar/PKGBUILD b/extra/liquidwar/PKGBUILD new file mode 100644 index 000000000..accbd157d --- /dev/null +++ b/extra/liquidwar/PKGBUILD @@ -0,0 +1,29 @@ +# $Id: PKGBUILD 63784 2010-01-18 15:14:56Z ibiru $ +# 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=4 +pkgdesc="A unique multiplayer wargame" +arch=('i686' 'x86_64') +url="http://www.ufoot.org/liquidwar/" +license=('GPL') +depends=('allegro>=4.4.0.1') +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 + sed -i 's|$(EXTERN_LIBS)|$(EXTERN_LIBS) -lm|' src/Makefile || 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" +} diff --git a/extra/liquidwar/liquidwar.install b/extra/liquidwar/liquidwar.install new file mode 100644 index 000000000..e864e83ea --- /dev/null +++ b/extra/liquidwar/liquidwar.install @@ -0,0 +1,16 @@ +infodir=/usr/share/info +file=(liquidwar.info.gz) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + install-info $infodir/$file $infodir/dir 2> /dev/null +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + install-info --delete $infodir/$file $infodir/dir 2> /dev/null +} |