updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / marbleblastgolddemo / PKGBUILD
blob7134ca025b61cb1f0f6e576936d9c766345d5718
1 # Maintainer: Gadget3000 <Gadget3000@man.com>
2 pkgname=marbleblastgolddemo
3 pkgver=1.4.1
4 pkgrel=2
5 pkgdesc="A 3D arcade action marble racing game demo."
6 arch=('i686' 'x86_64')
7 url="http://www.torquepowered.com/products/marbleblastgold"
8 license=('custom')
9 if [ "$CARCH" = "x86_64" ]; then
10         depends=('lib32-libvorbis' 'lib32-sdl')
11         optdepends=('lib32-alsa-oss: Sound support')
12 else
13         depends=('libvorbis' 'sdl')
14         optdepends=('alsa-oss: Sound support')
16 source=(http://demos.torquepowered.com/marbleblastgold/MarbleBlastGoldDemo-$pkgver.sh.bin)
17 md5sums=('556c7b1c051277ef8e9c0e1cc281d070')
18 install=(marbleblastgolddemo.install)
20 build() {
21   cd $srcdir
22   chmod +x MarbleBlastGoldDemo-$pkgver.sh.bin
23   ./MarbleBlastGoldDemo-$pkgver.sh.bin --tar xvf -C $srcdir
24   mkdir -p $pkgdir/opt/marbleblastgolddemo
25   tar xvf MarbleBlast.tar.gz -C $pkgdir/opt/marbleblastgolddemo
26   chown -Rh root:root ${pkgdir}/opt/marbleblastgolddemo
27   rm -rf ${pkgdir}/opt/marbleblastgolddemo/lib
28   mkdir -p $pkgdir/usr/bin
29   ln -s /opt/marbleblastgolddemo/marbleblastgolddemo $pkgdir/usr/bin/marbleblastgolddemo
30   install -D -m644 license.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"