updated on Fri Jan 20 04:00:45 UTC 2012
[aur-mirror.git] / quake4-multiplayer-demo / PKGBUILD
blob330fa0de0ddacd763778fcfc3a2f34ef7cd4a86f
1 # Contributor: Andrew Simmons <andrew.simmons@gmail.com>
3 pkgname=quake4-multiplayer-demo
4 pkgver=1.4.2
5 pkgrel=1
6 pkgdesc="Quake 4 Multiplayer demo"
7 url="http://www.quake4game.com/"
8 license=""
9 depends=('alsa-lib' 'sdl' 'libxext' 'libgl')
10 makedepends=('aria2')
11 arch=('i686')
12 license=('custom:"Quake 4 Multiplayer Demo"')
13 conflicts=()
14 replaces=()
15 backup=()
16 install="quake4-multiplayer-demo.install"
17 source=(ftp://ftp.idsoftware.com/idstuff/quake4/demo/$pkgname.x86.run \
18         $pkgname.sh \
19         ${pkgname}-dedicated.sh \
20         ${pkgname}-smp.sh)
21 md5sums=('48188680efcf15421803d2af7f7750ca'
22          'c80e55efbead2cae5e5326904a82d4d2'
23          '791cf1d51a96213859f1608e08667d70'
24          '95bcafe7217f4a67bca54f41dcab8d11')
26 build() {
27   cd $startdir/src
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
35   
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