1 # Inspired by wido's steelstorm (episode 1) pkgbuild
2 # Maintainer: Jose Riha <jose1711 gmail com>
4 pkgname=steelstorm2-hib
9 url="http://www.steel-storm.com/"
10 pkgdesc="a classic top down shooter, rife with explosions and things to explode, with a distinct visual style (version included in Humble Indie Bundle No 3)"
11 arch=('i686' 'x86_64')
12 license=('commercial')
13 install=${_pkgname}.install
14 depends=('curl' 'sdl_image' 'sdl_ttf' 'sdl_mixer' 'libvorbis' 'libogg' 'libmodplug' 'freetype2')
15 replaces=('steelstorm')
16 source=(steelstorm-br-${pkgver}.${pkgrel}-release.tar.gz
19 steelstorm-dedicated.desktop
20 steelstorm-dedicated.sh)
21 conflicts=('steelstorm2' 'steelstorm' 'steelstorm-beta')
23 md5sums=('dc3e88ac4efd12e88037af140aa803ca'
24 '92dbfd2bc861c56f4ed0be5fe1885cb3'
25 '73d596ac67fb34ebc28df1f89b789dc2'
26 '37765811bd5cc7349cee57623a1d7797'
27 '565ec1b72aff78bd2e311c289b65e2d5')
37 mkdir -p ${pkgdir}/opt/
39 cp -r ${srcdir}/${_pkgname} ${pkgdir}/opt/
41 if [ "${CARCH}" = "x86_64" ]; then
43 rm ${pkgdir}/opt/${_pkgname}/${_pkgname} ${pkgdir}/opt/${_pkgname}/${_pkgname}-dedicated
44 install -Dm 755 ${pkgdir}/opt/${_pkgname}/${_pkgname}64 ${pkgdir}/opt/${_pkgname}/${_pkgname}
45 install -Dm 755 ${pkgdir}/opt/${_pkgname}/${_pkgname}64-dedicated ${pkgdir}/opt/${_pkgname}/${_pkgname}-dedicated
47 elif [ "${CARCH}" = "i686" ]; then
49 rm ${pkgdir}/opt/${_pkgname}/${_pkgname}64 ${pkgdir}/opt/${_pkgname}/${_pkgname}64-dedicated
50 chmod 0755 ${pkgdir}/opt/${_pkgname}/${_pkgname}
51 chmod 0755 ${pkgdir}/opt/${_pkgname}/${_pkgname}-dedicated
55 echo "If you're not running x86_64 or i686, how are you running Arch?"
59 # Install .desktop, icon, license and bin
60 install -Dm 644 ${srcdir}/steelstorm.desktop ${pkgdir}/usr/share/applications/steelstorm.desktop
61 install -Dm 755 ${srcdir}/steelstorm.sh $pkgdir/usr/bin/steelstorm
62 install -Dm 644 ${srcdir}/steelstorm-dedicated.desktop ${pkgdir}/usr/share/applications/steelstorm-dedicated.desktop
63 install -Dm 755 ${srcdir}/steelstorm-dedicated.sh $pkgdir/usr/bin/steelstorm-dedicated
65 install -Dm 644 ${pkgdir}/opt/${_pkgname}/icons/ss_ep2_icon_64.png ${pkgdir}/usr/share/pixmaps/steelstorm.png
66 install -Dm 644 ${pkgdir}/opt/${_pkgname}/license.txt ${pkgdir}/usr/share/licenses/license.txt