1 # Maintainer: Federico Chiacchiaretta <federico.chia at gmail dot com>
3 pkgname=bin32-iowolfet-hg
6 pkgdesc="iowolfet is a completely free, standalone, team-based, multiplayer FPS; based on Wolfenstein: Enemy Territory GPL sources. 32-bit version"
8 url="http://www.iowolfet.org/"
10 depends=('lib32-mesa' 'enemy-territory' 'lib32-curl' 'lib32-sdl')
11 makedepends=('mercurial' 'gcc-multilib')
12 conflicts=('iowolfet-hg')
13 source=(iowolfet.desktop
17 md5sums=('6b650821e98f7427df7b8ece4932325e'
18 '01339bf30a78cfeb5f1c7c74e8db08b2'
19 '1286b579df2d4ce2433e55c99be9782f'
20 '9db765b868f15a013ab2ba16c25dfca1')
22 _hgroot="https://bitbucket.org/tcmreastwood"
25 _optdir="/opt/iowolfet"
30 export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
33 rm -rf ${_hgrepo}-build
34 cp -r ${_hgrepo} ${_hgrepo}-build
43 # Create Destination Directories
44 install -d $pkgdir/$_optdir/etmain
46 # Place binaries somewhere
47 cd $srcdir/${_hgrepo}-build/build/release-linux-i386
48 install -m 755 {ioetded,ioet,ioet-smp}.i386 $pkgdir/$_optdir/
49 cd $srcdir/${_hgrepo}-build/build/release-linux-i386/etmain
50 install -m 755 {cgame,qagame,ui}.mp.i386.so $pkgdir/$_optdir/etmain
52 # Place scripts in /usr/bin
53 install -Dm 755 $srcdir/iowolfet.sh $pkgdir/usr/bin/iowolfet
54 install -Dm 755 $srcdir/iowolfet-ded.sh $pkgdir/usr/bin/iowolfet-ded
57 install -Dm 755 $srcdir/iowolfet-ded.rc $pkgdir/etc/rc.d/iowolfet-ded
59 # Install desktop file
60 install -Dm 644 $srcdir/iowolfet.desktop $pkgdir/usr/share/applications/iowolfet.desktop
62 # Make symlinks to pak and video files from enemy-territory package
63 ln -sf /opt/enemy-territory/etmain/pak{0,1,2}.pk3 $pkgdir/$_optdir/etmain/
64 ln -sf /opt/enemy-territory/etmain/mp_bin.pk3 $pkgdir/$_optdir/etmain/
65 ln -sf /opt/enemy-territory/etmain/video $pkgdir/$_optdir/etmain/video