updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / bin32-iowolfet-hg / PKGBUILD
blob41dffd5a2cfba143883630e760429261c7c225a0
1 # Maintainer: Federico Chiacchiaretta <federico.chia at gmail dot com>
3 pkgname=bin32-iowolfet-hg
4 pkgver=53
5 pkgrel=1
6 pkgdesc="iowolfet is a completely free, standalone, team-based, multiplayer FPS; based on Wolfenstein: Enemy Territory GPL sources. 32-bit version"
7 arch=('x86_64')
8 url="http://www.iowolfet.org/"
9 license=('GPL')
10 depends=('lib32-mesa' 'enemy-territory' 'lib32-curl' 'lib32-sdl')
11 makedepends=('mercurial' 'gcc-multilib')
12 conflicts=('iowolfet-hg')
13 source=(iowolfet.desktop
14                 iowolfet.sh
15                 iowolfet-ded.rc
16                 iowolfet-ded.sh)
17 md5sums=('6b650821e98f7427df7b8ece4932325e'
18          '01339bf30a78cfeb5f1c7c74e8db08b2'
19          '1286b579df2d4ce2433e55c99be9782f'
20          '9db765b868f15a013ab2ba16c25dfca1')
22 _hgroot="https://bitbucket.org/tcmreastwood"
23 _hgrepo="raedwulf-et"
25 _optdir="/opt/iowolfet"
27 build() {
28         export CC="gcc -m32"
29         export CXX="g++ -m32"
30         export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
32     cd ${srcdir}
33         rm -rf ${_hgrepo}-build
34         cp -r ${_hgrepo} ${_hgrepo}-build
35         cd ${_hgrepo}-build
37     #Compile sources
38         export ARCH="i386"
39     make
42 package() {             
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
56     # Install rc.d script
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