updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / slingshot / PKGBUILD
blob0f028dbde091eb9665f2252e336f50367d1d65ae
1 # Maintainer: jsteel <jsteel at vorx dot com>
2 # Contributor: Erdbeerkaese
3 # Contributor: Arkham <arkham at archlinux dot us>
5 pkgname=slingshot
6 pkgver=0.8.1p
7 pkgrel=6
8 pkgdesc="A 2D strategy game in the gravity fields of several planets."
9 arch=(any)
10 url="http://slingshot.wikispot.org/"
11 license=('GPL')
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')
19 build() {
20     cd "$srcdir/Slingshot-$pkgver-linux"
21     tar -xzf "$pkgname"_files.tar.gz
22     cd "$pkgname"
23     patch < ../../planet.patch
24     patch < ../../player.patch
25     patch < ../../slingshot.patch
28 package() {
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"
33     done
34     for file in "$pkgname"/data/* ; do
35         install -D -m 644 "$file" "$pkgdir/usr/share/$pkgname/data"
36     done
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"