blob: 8fe359267a1c59ae690b24fc5747ae580b8961c0 (
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
43
44
45
46
47
48
49
50
51
52
53
54
|
# $Id: PKGBUILD 75859 2012-09-03 17:14:58Z svenstaro $
# 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.6.0
pkgrel=1
pkgdesc="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' 'sdl' 'libpng' 'mpg123' 'libogg' 'libvorbis')
makedepends=('cmake' 'gendesk')
#install=paintown.install
source=(http://downloads.sourceforge.net/sourceforge/paintown/$pkgname-$pkgver.tar.bz2
paintown.png)
md5sums=('5c1160bee51fe2011a1141c490a5d368'
'ed547f1377212ea079cf9b0a1ad2d587')
build() {
cd "$srcdir"
gendesk
cd "$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
#sed -i "1 i #include <zlib.h>" src/util/sdl/image/IMG_png.c
#sed -i "1 i #include <zlib.h>" src/util/sdl/image/IMG_savepng.c
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:
|