1 # Maintainer: Gadget3000 <gadget3000 at msn dot com>
2 # Contributor: gyo <nucleogeek_at_gmail_dot_com>
3 pkgname=penumbra-overture-ep1-demo
6 pkgdesc='First person dark adventure game'
8 url='http://penumbra-overture.com/'
10 if [ "$CARCH" = "x86_64" ]; then
11 depends=('lib32-openal' 'lib32-sdl_ttf' 'lib32-libvorbis' 'lib32-libgl' 'lib32-libxft' 'lib32-mesa' 'desktop-file-utils' 'lib32-sdl_image')
13 depends=('openal' 'sdl_ttf' 'libvorbis' 'libgl' 'libxft' 'mesa' 'desktop-file-utils' 'sdl_image')
16 install="$pkgname.install"
17 source=(http://au1cdn.ausgamers.com:88/downloads/1314282897/PenumbraOvertureDemo-${pkgver}.sh $pkgname.desktop)
18 md5sums=('dfd6d958c3ef8360577767f320059b76'
19 'cec56019df7b2a45f1d6d51c82573ede')
25 i686) rm bin/linux/x86_64 -fr; _arch=x86;;
26 x86_64) rm bin/linux/x86 -fr; _arch=x86_64;;
30 echo "Extracting archive"
31 sh PenumbraOvertureDemo-${pkgver}.sh --tar xvf -C $pkgname ./instarchive_all ./config/license
33 lzmadec instarchive_all > pack.tar
36 mkdir -p ${pkgdir}/opt/
37 tar xvf pack.tar -C ${pkgdir}/opt/
39 cd ${pkgdir}/opt/PenumbraOvertureDemo
41 echo "* Changing owner"
45 mkdir -p ${pkgdir}/usr/share/licenses/$pkgname/
46 mkdir -p ${pkgdir}/usr/share/applications/
47 install -m644 ${srcdir}/$pkgname/config/license ${pkgdir}/usr/share/licenses/$pkgname/
48 install -m644 ${srcdir}/$pkgname.desktop ${pkgdir}/usr/share/applications/
50 mkdir -p ${pkgdir}/usr/bin
51 echo \#\!/bin/bash > ${pkgdir}/usr/bin/penumbrademo
52 echo cd /opt/PenumbraOvertureDemo/>> ${pkgdir}/usr/bin/penumbrademo
53 echo ./penumbrademo >> ${pkgdir}/usr/bin/penumbrademo
54 chmod +x ${pkgdir}/usr/bin/penumbrademo