blob: c4deac487597209de5fbf2c011b164a70d0280ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# $Id: PKGBUILD 63502 2012-02-05 11:51:43Z ibiru $
# Maintainer: Mateusz Herych <heniekk@gmail.com>
# Contributor: Filippo 'JoeyrS' Civiletti <joeyrs@gmail.com>
pkgname=armagetronad
pkgver=0.2.8.3.1
pkgrel=3
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')
build() {
cd 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
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
}
|