1 # Maintainer: jsteel <jsteel at vorx dot com>
2 # Contributor: Erdbeerkaese
3 # Contributor: Arkham <arkham at archlinux dot us>
8 pkgdesc="A 2D strategy game in the gravity fields of several planets."
10 url="http://slingshot.wikispot.org/"
12 depends=('python-pygame>=1.7.1')
13 source=(http://downloads.sourceforge.net/slingshot-game/Slingshot-$pkgver-linux.tar.gz "$pkgname.sh" planet.patch player.patch slingshot.patch)
14 md5sums=('cdfcf0c85dc7d1b203344c24f591e7b5'
15 'e342a8de1bc701d457c6bbe4fe11a9ee'
16 '1e3064465764c355f30aefebc091c742'
17 '614003b3cf68f02e3b90c869903d128d'
18 '68333e7f92fc4197d99fd3d870347037')
20 cd "$srcdir/Slingshot-$pkgver-linux"
21 tar -xzf "$pkgname"_files.tar.gz
23 patch < ../../planet.patch
24 patch < ../../player.patch
25 patch < ../../slingshot.patch
29 cd "$srcdir/Slingshot-$pkgver-linux"
30 install -d "$pkgdir/usr/share/$pkgname/data"
31 for file in "$pkgname"/*.py ; do
32 install -D -m 644 "$file" "$pkgdir/usr/share/$pkgname"
34 for file in "$pkgname"/data/* ; do
35 install -D -m 644 "$file" "$pkgdir/usr/share/$pkgname/data"
37 install -D -m 644 readme "$pkgdir/usr/share/doc/$pkgname/readme"
38 # Install .desktop and bin
39 sed -i 's,/opt/,/usr/share/,' slingshot.desktop
40 install -Dm 644 slingshot.desktop \
41 "$pkgdir/usr/share/applications/slingshot.desktop"
42 install -D -m 755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"