contrib/atanks/Pkgfile

26 lines
903 B
Plaintext
Raw Normal View History

2008-03-13 12:08:03 +01:00
# Description: Annihilate the other tanks to earn money, then spend it on bigger and better shields and weapons to wipe out the opposition.
# URL: http://atanks.sourceforge.net/
2008-03-26 03:45:31 +01:00
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
# Packager: Danny Rawlins, monster dot romster at gmail dot com
2008-03-13 12:08:03 +01:00
# Depends on: allegro
name=atanks
2008-03-27 08:19:09 +01:00
version=2.9
2008-03-13 12:08:03 +01:00
release=1
source=(http://dl.sourceforge.net/sourceforge/atanks/atanks-$version.tar.gz)
build() {
cd atanks
sed -i src/Makefile \
-e '/^FLAGS = /s|-DLINUX -DDATA_DIR=\\".\\"|-DLINUX -DDATA_DIR=\\"/usr/share/atanks\\"|' \
-e '/^CFLAGS += -g.*$/d'
make -C src
install -D -m 0755 atanks $PKG/usr/bin/atanks
install -d $PKG/usr/share/atanks
install -m 0644 *.dat *.txt -t $PKG/usr/share/atanks/
install -D -m 0644 atanks.desktop $PKG/usr/share/applications/atanks.desktop
install -D -m 0644 atanks.png $PKG/usr/share/pixmaps/atanks.png
}