summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 59efe30dfd9a6a7dd12de9fa507206f76ecb0eaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Maintainer: Morgan Bohn <morgan.bohn at gmail dot com>
# Based on the skulltag package by Mikael Eriksson <mikael_eriksson@miffe.org>
# and Sean Streeter <anubis2591 at gmail dot com>
# and Robert La Spina <rkidlaspina at gmail dot com> 
pkgname=zandronum2
pkgver=2.1.2
pkgrel=1
pkgdesc="OpenGL ZDoom port with Client/Server multiplayer."
arch=('i686' 'x86_64')
url="http://zandronum.com/"
license=('custom')
conflicts=('zandronum-hg', 'zandronum')
#makedepends=('cmake' 'mercurial' 'yasm' 'mesa') # Not sure if it needs yasm.
depends=('sdl' 'gtk2' 'libjpeg6-turbo' 'glu' 'openssl' 'fluidsynth')
optdepends=('timidity++: midi support'
            'freedoom: free IWAD')
install=zandronum.install

if [ "$CARCH" == "i686" ];then
    source=(
        "http://zandronum.com/downloads/zandronum${pkgver}-linux-x86.tar.bz2"
        "LICENSE.txt"
    )
    md5sums=(
        '9457d399ff5ef419da653a4633562063'
        '58c2c8b15c886b838dc2ed5186361507'
    )
    _64=
fi

if [ "$CARCH" == "x86_64" ]; then
    source=(
        "http://zandronum.com/downloads/zandronum${pkgver}-linux-x86_64.tar.bz2"
        "LICENSE.txt"
    )
    md5sums=(
        '115f52125933e49d1620b2a40326b6c5'
        '58c2c8b15c886b838dc2ed5186361507'
    )
    _64=64
fi


build() {
  cd $srcdir
 
  cat > zandronum.sh << EOF
#!/bin/sh
export LD_LIBRARY_PATH=/usr/share/zandronum/lib
exec /usr/share/zandronum/zandronum "\$@"
EOF

  cat > zandronum-server.sh << EOF
#!/bin/sh
export LD_LIBRARY_PATH=/usr/share/zandronum/lib
exec /usr/share/zandronum/zandronum-server "\$@"
EOF

}

package(){ 
  cd $srcdir
  
  install -Dm644 "zandronum.pk3" "$pkgdir/usr/share/zandronum/zandronum.pk3"
  #install -Dm644 "brightmaps.pk3" "$pkgdir/usr/share/zandronum/brightmaps.pk3"
  install -Dm644 "skulltag_actors.pk3" "$pkgdir/usr/share/zandronum/skulltag_actors.pk3"
  install -Dm755 "liboutput_sdl.so" "$pkgdir/usr/share/zandronum/lib/liboutput_sdl.so"
  install -Dm755 "zandronum" "$pkgdir/usr/share/zandronum/zandronum"
  install -Dm755 "zandronum-server" "$pkgdir/usr/share/zandronum/zandronum-server"
  install -Dm755 "zandronum.sh" "$pkgdir/usr/bin/zandronum"
  install -Dm755 "zandronum-server.sh" "$pkgdir/usr/bin/zandronum-server"
  install -Dm755 "libfmodex${_64}-4.24.16.so" "$pkgdir/usr/share/zandronum/lib/libfmodex${_64}-4.24.16.so"

#  ln -s "/usr/lib/libcrypto.so" "$pkgdir/usr/share/zandronum/lib/libcrypto.so.0.9.8"
#  ln -s "/usr/lib/libssl.so" "$pkgdir/usr/share/zandronum/lib/libssl.so.0.9.8"

  install -Dm644 "LICENSE.txt" "$pkgdir/usr/share/licenses/zandronum/LICENSE"
}

# vim:set ts=2 sw=2 et: