43 lines
1.4 KiB
Plaintext
43 lines
1.4 KiB
Plaintext
# Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
|
|
# Contributor: Kyle Keen <keenerd@gmail.com>
|
|
# Contributor: Mateusz Herych <heniekk@gmail.com>
|
|
# Contributor: Filippo 'JoeyrS' Civiletti <joeyrs@gmail.com>
|
|
|
|
pkgname=armagetronad
|
|
pkgver=0.2.9.2.3
|
|
pkgrel=1
|
|
pkgdesc='A Tron Clone in 3D'
|
|
arch=('x86_64')
|
|
url='http://armagetronad.net/'
|
|
license=('GPL')
|
|
# Disable build flags to fix FS#80060
|
|
options=('!buildflags')
|
|
depends=('sdl_image' 'libxml2' 'sdl_mixer' 'ftgl' 'hicolor-icon-theme')
|
|
source=("https://launchpad.net/armagetronad/0.2.9/${pkgver}/+download/armagetronad-${pkgver}.tbz")
|
|
sha256sums=('330cb65610d1f6f1374f4156352eb687d7b1bccc0b391fde3d771549c5a5d928')
|
|
|
|
prepare() {
|
|
cd "$srcdir/armagetronad-$pkgver"
|
|
sed -i -r '/desktop-id/ s/(<!-- )|(org.armagetronad.)|( -->)//g' desktop/armagetronad.appdata.xml.in
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/armagetronad-$pkgver"
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--disable-games \
|
|
--enable-automakedefaults \
|
|
--disable-uninstall
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/armagetronad-$pkgver"
|
|
DESTDIR="$pkgdir" make -j1 install
|
|
install -Dm644 "desktop/armagetronad.desktop" "$pkgdir/usr/share/applications/armagetronad.desktop"
|
|
for f in 16x16 32x32 48x48; do
|
|
ln -s /usr/share/armagetronad/desktop/icons/$f/armagetronad.png "$pkgdir/usr/share/icons/hicolor/$f/apps/armagetronad.png"
|
|
done
|
|
}
|