summaryrefslogtreecommitdiff
path: root/community/atanks
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/atanks
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/atanks')
-rw-r--r--community/atanks/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/community/atanks/PKGBUILD b/community/atanks/PKGBUILD
new file mode 100644
index 000000000..17a1c5c84
--- /dev/null
+++ b/community/atanks/PKGBUILD
@@ -0,0 +1,36 @@
+# $Id: PKGBUILD 42290 2011-03-16 10:36:27Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Jacek Poplawski <jacekpoplawski@gmail.com>
+# Contributor: Charlie Cox <ccoxiv@yahoo.com>
+
+pkgname=atanks
+pkgver=4.8
+pkgrel=1
+pkgdesc="Atomic Tanks"
+url="http://atanks.sourceforge.net"
+license=('GPL')
+arch=('i686' 'x86_64')
+makedepends=('sed')
+depends=('allegro>=4.4.0.1' 'gcc-libs')
+source=(http://downloads.sourceforge.net/project/atanks/atanks/atanks-$pkgver/atanks-$pkgver.tar.gz)
+md5sums=('a00b709f6aec4e0e33ab0d56a6e932e7')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ #debug messages fix
+ sed -i '/lines->Display_All(TRUE)/d' src/files.cpp
+ sed -i '/Scroll Offset:/d' src/files.cpp
+ sed -i '/T offset:/d' src/files.cpp
+ #
+ sed -i '1,1i#include <sys/stat.h>' src/files.cpp
+
+ make
+ make PREFIX=${pkgdir}/usr/ INSTALL="install -c" install
+
+ sed -i 's/^Name=atanks/Name=Atomic Tanks/' atanks.desktop
+ sed -i 's/^Categories=Game;/Categories=Game;StrategyGame;/' atanks.desktop
+
+ install -Dm644 atanks.desktop $pkgdir/usr/share/applications/atanks.desktop
+ install -Dm644 atanks.png $pkgdir/usr/share/pixmaps/atanks.png
+}