summaryrefslogtreecommitdiff
path: root/community/paintown
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/paintown
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/paintown')
-rw-r--r--community/paintown/PKGBUILD49
-rw-r--r--community/paintown/paintown.desktop8
-rw-r--r--community/paintown/paintown.pngbin0 -> 14271 bytes
3 files changed, 57 insertions, 0 deletions
diff --git a/community/paintown/PKGBUILD b/community/paintown/PKGBUILD
new file mode 100644
index 000000000..8d885f949
--- /dev/null
+++ b/community/paintown/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: Jschares <jacob.schares@gmail.com>
+# Contributor: celmir <scibecelmir@tuxfamily.org>
+# Contributor: Feufochmar <guill.delacourt@gmail.com>
+pkgname=paintown
+pkgver=3.4.0
+pkgrel=2
+pkgdesc="An open source fighting game in the same genre as Streets of Rage and Teenage Mutant Ninja Turtles."
+arch=('i686' 'x86_64')
+url="http://paintown.sourceforge.net/"
+license=('GPL')
+depends=('python2' 'freetype2' 'allegro')
+makedepends=('cmake')
+#install=paintown.install
+source=(http://downloads.sourceforge.net/sourceforge/paintown/$pkgname-$pkgver.tar.gz
+ paintown.png
+ paintown.desktop)
+md5sums=('f1d49ffc3149b545d95a57f99570331f'
+ 'ed547f1377212ea079cf9b0a1ad2d587'
+ '4144c695ad0bc4621e96ef9760f33b19')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+# fix python2 header
+ for file in $(find . -name '*.py' -print); do
+ sed -i "s#/usr/bin/python#/usr/bin/env python2#" $file
+ done
+# not needed as cmake is used instead of scons
+# sed -i "s#python#python2#" Makefile
+ mkdir -p build
+ cd build
+ cmake ..
+ make
+ cp bin/paintown ..
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ mkdir -p $pkgdir/usr/{bin,share/{paintown,pixmaps,applications,licenses/paintown}}
+ sh install.sh -d $pkgdir/usr/share/paintown -b $pkgdir/usr/bin
+# correct the gnerated file to remove the wrong path (because $pkgdir/usr/bin is written in the file)
+ sed -i "s#$pkgdir##g" $pkgdir/usr/bin/paintown
+ install -m644 $srcdir/paintown.desktop $pkgdir/usr/share/applications/paintown.desktop
+ install -m644 $srcdir/paintown.png $pkgdir/usr/share/pixmaps/paintown.png
+ install -m644 LICENSE $pkgdir/usr/share/licenses/paintown/LICENSE
+ install -m644 LEGAL $pkgdir/usr/share/licenses/paintown/LEGAL
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/community/paintown/paintown.desktop b/community/paintown/paintown.desktop
new file mode 100644
index 000000000..e729ecbd0
--- /dev/null
+++ b/community/paintown/paintown.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=PainTown
+Comment=Paintown is an open source fighting game in the same genre as Streets of Rage and Teenage Mutant Ninja Turtles.
+Exec=paintown
+Icon=paintown.png
+Terminal=false
+Type=Application
+Categories=Application;Game;
diff --git a/community/paintown/paintown.png b/community/paintown/paintown.png
new file mode 100644
index 000000000..c7e4830e4
--- /dev/null
+++ b/community/paintown/paintown.png
Binary files differ