summaryrefslogtreecommitdiff
path: root/community/armagetronad/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-04-09 00:01:09 +0000
committerroot <root@rshg054.dnsready.net>2012-04-09 00:01:09 +0000
commit4de1f7cfdca3531b7324f72b2f109384b2a3a856 (patch)
tree7fe243e8ad2bfcbaa4027aca963474964800c387 /community/armagetronad/PKGBUILD
parent5eb91336815b8ce54fbdb828555166b348738c49 (diff)
Mon Apr 9 00:01:09 UTC 2012
Diffstat (limited to 'community/armagetronad/PKGBUILD')
-rw-r--r--community/armagetronad/PKGBUILD39
1 files changed, 19 insertions, 20 deletions
diff --git a/community/armagetronad/PKGBUILD b/community/armagetronad/PKGBUILD
index c4deac487..b7e6e1a32 100644
--- a/community/armagetronad/PKGBUILD
+++ b/community/armagetronad/PKGBUILD
@@ -1,42 +1,41 @@
-# $Id: PKGBUILD 63502 2012-02-05 11:51:43Z ibiru $
-# Maintainer: Mateusz Herych <heniekk@gmail.com>
+# $Id: PKGBUILD 68998 2012-04-07 15:11:48Z kkeen $
+# Maintainer: Kyle Keen <keenerd@gmail.com>
+# Contributor: Mateusz Herych <heniekk@gmail.com>
# Contributor: Filippo 'JoeyrS' Civiletti <joeyrs@gmail.com>
pkgname=armagetronad
-pkgver=0.2.8.3.1
-pkgrel=3
+pkgver=0.2.8.3.2
+pkgrel=1
pkgdesc='A Tron Clone in 3D.'
arch=('i686' 'x86_64')
url='http://armagetronad.net/'
license=('GPL')
depends=('sdl_image' 'libxml2' 'sdl_mixer' 'mesa' 'ftgl')
-source=(http://downloads.sourceforge.net/sourceforge/armagetronad/armagetronad-$pkgver.src.tar.gz
- armagetronad.desktop
- gcc43.patch)
-md5sums=('ed8dbdec493de5cd4535a787f35eed1b'
- '29d1b1231acadff12cf3014a3867ba5c'
- '9045d99559ef33fc18136630e8de916c')
+source=(http://downloads.sourceforge.net/sourceforge/armagetronad/armagetronad-$pkgver.src.tar.gz)
+md5sums=('f7796de4ef50bd33553e0a3f93fd67e6')
build() {
- cd armagetronad-$pkgver
+ cd "$srcdir/armagetronad-$pkgver"
# python2 fix
sed -i 's_#!/usr/bin/python_#!/usr/bin/python2_' language/update.py
sed -i 's|FTGL.h|ftgl.h|g' configure
sed -i 's|png_check_sig|png_sig_cmp|g' configure
- patch -p1 < ../gcc43.patch
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--disable-games \
- --enable-automakedefaults
+ --enable-automakedefaults \
+ --disable-uninstall
make
- make DESTDIR=$pkgdir install
- install -D -m 644 $srcdir/armagetronad.desktop $pkgdir/usr/share/applications/armagetronad.desktop
- rm -rf $pkgdir/usr/share/applnk
- rm $pkgdir/usr/bin/armagetronad-uninstall
- mv $pkgdir/usr/bin/armagetronad $pkgdir/usr/bin/armagetronad_bin
- printf "#!/bin/bash\n/usr/bin/armagetronad_bin --configdir /etc/armagetronad --datadir /usr/share/armagetronad" > $pkgdir/usr/bin/armagetronad
- chmod +x $pkgdir/usr/bin/armagetronad
+}
+
+package() {
+ cd "$srcdir/armagetronad-$pkgver"
+ make DESTDIR="$pkgdir" install
+ install -D -m 644 "desktop/armagetronad.desktop" "$pkgdir/usr/share/applications/armagetronad.desktop"
+ mv "$pkgdir/usr/bin/armagetronad" "$pkgdir/usr/bin/armagetronad_bin"
+ printf "#!/bin/bash\n/usr/bin/armagetronad_bin --configdir /etc/armagetronad --datadir /usr/share/armagetronad" > "$pkgdir/usr/bin/armagetronad"
+ chmod +x "$pkgdir/usr/bin/armagetronad"
}