updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / steelstorm / PKGBUILD
blob78e82eac4d86e9df17cbc4935d334efa34ef9997
1 # Contributor: wido < widomaker2k7@gmail.com >
3 episode=ep1
4 pkgname=steelstorm
5 pkgver=10002718
6 _build=1.00.02718
7 pkgrel=2
8 pkgdesc="a classic top down shooter, rife with explosions and things to explode, with a distinct visual style."
9 arch=('i686' 'x86_64')
10 url="http://www.steel-storm.com/"
11 license=('CUSTOM')
12 depends=('curl' 'sdl_image' 'sdl_ttf' 'sdl_mixer' 'libvorbis' 'libogg' 'libmodplug' 'freetype2' 'libjpeg6')
13 provides=('steelstorm')
14 replaces=('steelstorm-beta')
15 makedepends=()
16 source=(http://download2.steel-storm.com/${pkgname}-${episode}-v${_build}.tar.gz
17         steelstorm.desktop
18         steelstorm.sh
19         steelstorm-dedicated.desktop
20         steelstorm-dedicated.sh)
21 md5sums=('90f2369812e4c5025c711630fc5c87de'
22          '32005427334b8888f175165f6a928c6b'
23          '73d596ac67fb34ebc28df1f89b789dc2'
24          '37765811bd5cc7349cee57623a1d7797'
25          '565ec1b72aff78bd2e311c289b65e2d5')
27 build() {
28   cd ${srcdir}/${pkgname}
29   mkdir -p ${pkgdir}/opt/
30   # Game
31   cp -r ${srcdir}/${pkgname} ${pkgdir}/opt/
33   # Patch
34   #cp -r ${srcdir}/gamedata ${pkgdir}/opt/${_pkgname}/
36   if [ "${CARCH}" = "x86_64" ]; then
37       # Delete bin 32 bits
38       rm ${pkgdir}/opt/${pkgname}/${pkgname} ${pkgdir}/opt/${pkgname}/${pkgname}-dedicated
39       install -Dm 755 ${pkgdir}/opt/${pkgname}/${pkgname}64 ${pkgdir}/opt/${pkgname}/${pkgname}
40       install -Dm 755 ${pkgdir}/opt/${pkgname}/${pkgname}64-dedicated ${pkgdir}/opt/${pkgname}/${pkgname}-dedicated
42   elif [ "${CARCH}" = "i686" ]; then
43       # Delete bin 64 bits
44       rm ${pkgdir}/opt/${pkgname}/${pkgname}64 ${pkgdir}/opt/${pkgname}/${pkgname}64-dedicated
45   else
46       echo "If you're not running x86_64 or i686, how are you running Arch?"
47       return 1
48   fi
50   # Install .desktop, icon, license and bin
51   install -Dm 644 ${srcdir}/steelstorm.desktop ${pkgdir}/usr/share/applications/steelstorm.desktop
52   install -Dm 755 ${srcdir}/steelstorm.sh $pkgdir/usr/bin/steelstorm
53   install -Dm 644 ${srcdir}/steelstorm-dedicated.desktop ${pkgdir}/usr/share/applications/steelstorm-dedicated.desktop
54   install -Dm 755 ${srcdir}/steelstorm-dedicated.sh $pkgdir/usr/bin/steelstorm-dedicated
56   install -Dm 644 ${pkgdir}/opt/${pkgname}/icons/steelstorm_icon_64x64.png ${pkgdir}/usr/share/pixmaps/steelstorm.png
57   install -Dm 644 ${pkgdir}/opt/${pkgname}/license.txt ${pkgdir}/usr/share/licenses/license.txt