updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / amnesia-demo / PKGBUILD
blobf84e958d3aae155ba7cb13a7265900e9fc171af3
2 # Maintainer: J. W. Birdsong  <jwbirdsong AT gmail DOT com>
3 # Contributor: Marti Raudsepp <marti@juffo.org>
5 pkgname=amnesia-demo
6 pkgver=1.0
7 pkgrel=4
8 pkgdesc="Demo version of 'Amnesia: The Dark Descent', a horror adventure game"
9 arch=('i686' 'x86_64')
10 url="http://www.amnesiagame.com/"
11 license=('custom')
12 install=($pkgname.install)
13 # doesn't need more dependencies, automatically falls back to included libs
14 depends=('libxft')
15 source=(http://gamedaily.newaol.com/pub/amnesia_tdd_demo_$pkgver.sh.zip $pkgname.install amnesia.launcher)
16 md5sums=('8c0e062a69e46f1a290a06e919daaf08'
17          '5f373e82e8260b706c417317ecf45679'
18          'ebcd4cb1a4175cf35e6fd30a6c195a95')
19   
20 build() {
21   cd "$srcdir"
23   #mkdir -p "$srcdir/pkgname-$pkgver"
24   #sh amnesia_tdd_demo_$pkgver.sh --tar xf -C "$srcdir/pkgname-$pkgver"
26   # This time around, it seems that the auto-extractor is intelligent enough
27   sh amnesia_tdd_demo_$pkgver.sh --target "$srcdir/tmp" --unattended --accept-license --destdir "$srcdir"
29   rm AmnesiaDemo/uninstall.sh
30   sed -i "s|$srcdir/|/opt/|" AmnesiaDemo/*.desktop
32 [[ "$CARCH" == "x86_64" ]] && sed -i "s|Launcher.bin|Launcher.bin64|"  amnesia.launcher
35   install -dm 755 -g games  $pkgdir/opt
36   install -dm 755   $pkgdir/usr/share/applications $pkgdir/usr/share/licenses/$pkgname
37   install -Dm 755   $srcdir/amnesia.launcher $pkgdir/usr/bin/amnesia
38   mv AmnesiaDemo/*.desktop $pkgdir/usr/share/applications/
39   mv AmnesiaDemo/EULA_*.rtf $pkgdir/usr/share/licenses/$pkgname/
40   mv AmnesiaDemo $pkgdir/opt/
41   chown root:games -R $pkgdir/opt/AmnesiaDemo
44 # vim:set ts=2 sw=2 et: