diff options
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 42 | ||||
-rw-r--r-- | shank2.desktop | 9 | ||||
-rwxr-xr-x | shank2.sh | 6 |
4 files changed, 78 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9e784b973290 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = shank2 + pkgdesc = A 2D side-scrolling beat ’em up. + pkgver = update7 + pkgrel = 4 + url = http://www.shankgame.com/ + arch = i686 + arch = x86_64 + groups = humble-indie-bundle7 + groups = games + license = custom:commercial + depends = sdl + depends = libgl + source = hib://shank2-linux-update7.tgz + source = shank2.sh + source = shank2.desktop + sha1sums = 246df822375a97ab4e3a74353b5a33e9b4a54934 + sha1sums = b6ce1311e04c65243ee2159f877fba539121887e + sha1sums = 6a2267ea66fce90dea94ff3964ab704751f18ee5 + +pkgname = shank2 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5c0e4069f994 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: flying sheep <flying-sheep@web.de> +# Contributor: N30N <archlinux@alunamation.com> +# Contributor: swiftgeek <swiftgeek@gmail.com> +# Contributor: Marvn <mistrmarvn@gmail.com> +# Contributor: fzerorubigd <fzerorubigd@gmail.com> + +pkgname=shank2 +pkgver=update7 +pkgrel=4 +pkgdesc='A 2D side-scrolling beat ’em up.' +url='http://www.shankgame.com/' +license=('custom:commercial') +arch=('i686' 'x86_64') +groups=('humble-indie-bundle7' 'games') +depends=('sdl' 'libgl') +source=("hib://shank2-linux-$pkgver.tgz" "shank2.sh" "shank2.desktop") +sha1sums=('246df822375a97ab4e3a74353b5a33e9b4a54934' + 'b6ce1311e04c65243ee2159f877fba539121887e' + '6a2267ea66fce90dea94ff3964ab704751f18ee5') +DLAGENTS+=('hib::/usr/bin/echo "Could not find %u. Manually download it to \"$(pwd)\", or set up a hib:// DLAGENT in /etc/makepkg.conf."; exit 1') +PKGEXT='.pkg.tar' + +package() { + cd "$srcdir" + + if [ $CARCH == 'x86_64' ]; then + _arch=64 + else + _arch=32 + fi + + _install_dir="$pkgdir/opt/shank2" + + install -Dm755 shank2.sh "$pkgdir/usr/bin/shank2" + install -Dm644 shank2.desktop "$pkgdir/usr/share/applications/shank2.desktop" + + install -Dm755 bin/shank2-bin$_arch "$_install_dir/bin/shank2" + install -Dm644 Shank2.xpm "$_install_dir/Shank2.xpm" + install -dm755 "$_install_dir/lib" + install -m644 bin/lib$_arch/* "$_install_dir/lib" + find data{,-pc} -type f -exec install -Dm644 {} "$_install_dir/{}" \; +} diff --git a/shank2.desktop b/shank2.desktop new file mode 100644 index 000000000000..98a83fada1b6 --- /dev/null +++ b/shank2.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Type=Application +Name=Shank 2 +GenericName=Shank 2 +Comment=A 2D side-scrolling beat 'em up. +Categories=Game;ArcadeGame; +Path=/opt/shank2/ +Icon=/opt/shank2/Shank2.xpm +Exec=shank2 diff --git a/shank2.sh b/shank2.sh new file mode 100755 index 000000000000..cfe7f895e78b --- /dev/null +++ b/shank2.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/shank2/lib/ +export force_s3tc_enable=true +cd /opt/shank2/bin/ +exec ./shank2 "$@"
\ No newline at end of file |