updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / penumbra-overture-ep1-demo / PKGBUILD
blob020b354f907515bc752ac3b636c0445f0aa31d15
1 # Maintainer: Gadget3000 <gadget3000 at msn dot com>
2 # Contributor: gyo <nucleogeek_at_gmail_dot_com>
3 pkgname=penumbra-overture-ep1-demo
4 pkgver=2553
5 pkgrel=1
6 pkgdesc='First person dark adventure game'
7 arch=('i686' 'x86_64')
8 url='http://penumbra-overture.com/'
9 license=('custom')
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')
12 else
13         depends=('openal' 'sdl_ttf' 'libvorbis' 'libgl' 'libxft' 'mesa' 'desktop-file-utils' 'sdl_image')
15 makedepends=('xz')
16 install="$pkgname.install"
17 source=(http://au1cdn.ausgamers.com:88/downloads/1314282897/PenumbraOvertureDemo-${pkgver}.sh $pkgname.desktop)
18 md5sums=('dfd6d958c3ef8360577767f320059b76'
19          'cec56019df7b2a45f1d6d51c82573ede')
21 build() {
22   cd $srcdir
24   case $CARCH in
25     i686) rm bin/linux/x86_64 -fr; _arch=x86;;
26     x86_64) rm bin/linux/x86 -fr; _arch=x86_64;;
27   esac
29   mkdir -p $pkgname
30   echo "Extracting archive"
31   sh PenumbraOvertureDemo-${pkgver}.sh --tar xvf -C $pkgname ./instarchive_all ./config/license
32   cd $pkgname
33   lzmadec instarchive_all > pack.tar
34   echo "...Done."
36   mkdir -p ${pkgdir}/opt/
37   tar xvf pack.tar -C ${pkgdir}/opt/
39   cd ${pkgdir}/opt/PenumbraOvertureDemo
41   echo "* Changing owner"
42   chown root.root -R .
43   echo "...Done"
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