1 # Contributor: Andrew Simmons <andrew.simmons@gmail.com>
3 pkgname=quake4-multiplayer-demo
6 pkgdesc="Quake 4 Multiplayer demo"
7 url="http://www.quake4game.com/"
9 depends=('alsa-lib' 'sdl' 'libxext' 'libgl')
12 license=('custom:"Quake 4 Multiplayer Demo"')
16 install="quake4-multiplayer-demo.install"
17 source=(ftp://ftp.idsoftware.com/idstuff/quake4/demo/$pkgname.x86.run \
19 ${pkgname}-dedicated.sh \
21 md5sums=('48188680efcf15421803d2af7f7750ca'
22 'c80e55efbead2cae5e5326904a82d4d2'
23 '791cf1d51a96213859f1608e08667d70'
24 '95bcafe7217f4a67bca54f41dcab8d11')
28 chmod +x $pkgname.x86.run
29 mkdir -p $startdir/pkg/opt/$pkgname \
30 $startdir/pkg/usr/bin \
31 $startdir/pkg/usr/share/licenses/$pkgname
32 ./$pkgname.x86.run -- -i $startdir/pkg/opt/$pkgname -b $startdir/pkg/usr/bin
33 # ncurses & gtk installers don't return 1 when canceled, so check that files are installed
34 ls $startdir/pkg/opt/$pkgname/q4base || return 1
36 install -m755 -D $pkgname.sh $startdir/pkg/opt/$pkgname/$pkgname
37 install -m755 -D ${pkgname}-dedicated.sh $startdir/pkg/opt/$pkgname/${pkgname}-dedicated
38 install -m755 -D ${pkgname}-smp.sh $startdir/pkg/opt/$pkgname/${pkgname}-smp
40 rm $startdir/pkg/opt/$pkgname/quake4-demo \
41 $startdir/pkg/opt/$pkgname/quake4-demo-dedicated \
42 $startdir/pkg/opt/$pkgname/quake4-demo-smp \
43 $startdir/pkg/usr/bin/quake4-demo \
44 $startdir/pkg/usr/bin/quake4-demo-dedicated \
45 $startdir/pkg/usr/bin/quake4-demo-smp
47 ln -sf /opt/$pkgname/$pkgname $startdir/pkg/usr/bin/$pkgname
48 ln -sf /opt/$pkgname/${pkgname}-dedicated $startdir/pkg/usr/bin/${pkgname}-dedicated
49 ln -sf /opt/$pkgname/${pkgname}-smp $startdir/pkg/usr/bin/${pkgname}-smp
50 ln -sf /opt/$pkgname/EULA.txt $startdir/pkg/usr/share/licenses/$pkgname/EULA.txt