1 #Maintainer: andy123 < ajs @ online.de >
3 pkgname=unigine-sanctuary
4 _pkgname=Unigine_Sanctuary
7 pkgdesc="Unigine Benchmark"
9 url="http://www.unigine.com"
12 [ "$CARCH" = "i686" ] && depends=(openal libgl gcc-libs libxrandr libxinerama libxinerama gcc-libs libxrandr bash)
13 [ "$CARCH" = "x86_64" ] && depends=(openal libgl gcc-libs lib32-libxrandr lib32-libxinerama libxinerama lib32-gcc-libs libxrandr bash)
14 source=(http://www.unigine.com/download/torrents/$_pkgname-$pkgver.run.torrent
16 $_pkgname-$pkgver.sha512)
18 sha1sums=('bcd2da1987959b6a778509f12d661101cde42fae'
19 '7c44552d95cd526f72e4691ff249c5d3a57bf742'
20 '4ccbb4bd988d54dba5fa1c496e4ab702ad5f0c37')
24 [ -f $_pkgname-$pkgver.run ] || aria2c $_pkgname-$pkgver.run.torrent -c --seed-time=0 #exit when download is finished
25 sha512sum -c $_pkgname-$pkgver.sha512 || return 1
31 sh $_pkgname-$pkgver.run
32 install -m755 -d $pkgdir/opt/$pkgname
33 cp -R $srcdir/sanctuary/bin/ $pkgdir/opt/$pkgname/
34 cp -R $srcdir/sanctuary/data/ $pkgdir/opt/$pkgname/
35 install -d $pkgdir/usr/bin/
36 install unigine-sanctuary -m755 $pkgdir/usr/bin/$pkgname
37 if [ "$CARCH" = "x86_64" ]; then
38 sed -i s#Heaven_x86#Heaven_x64#g $pkgdir/usr/bin/$pkgname