updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / skulltag / PKGBUILD
blob017025666cf3d15f14c8806822669901d0e854e6
1 # Maintainer: Mikael Eriksson <mikael_eriksson@miffe.org>
2 # Original PKGBUILD by Sean Streeter <anubis2591 at gmail dot com>
3 pkgname=skulltag
4 pkgver=098d
5 pkgrel=2
6 pkgdesc="Closed source OpenGL ZDoom port with Client/Server multiplayer."
7 arch=('i686' 'x86_64')
8 url="http://skulltag.net/"
9 license=('closed')
10 depends=('sdl' 'gtk2' 'libjpeg6')
11 optdepends=('timidity++: midi support'
12             'freedoom: free IWAD')
13 install=skulltag.install
15 case "$CARCH" in
16   i686)
17     source=("http://skulltag.net/download/files/release/st-v${pkgver}_linux-base.tar.bz2"
18             "http://skulltag.net/download/files/release/st-v${pkgver}_linux-x86.tar.bz2"
19             "http://www.fmod.org/index.php/release/version/fmodapi42416linux.tar.gz")
20     md5sums=('afe482e04ce3f51c94915e07c3aff3b0'
21              'faa005fc5b44da424d87d6a17eaafccb'
22              '00b157e8d09d539b0a7023c48b71422a')
23     ;;
24   x86_64)
25     source=("http://skulltag.net/download/files/release/st-v${pkgver}_linux-base.tar.bz2"
26            "http://skulltag.net/download/files/release/st-v${pkgver}_linux-x86_64.tar.bz2"
27            "http://www.fmod.org/index.php/release/version/fmodapi42416linux64.tar.gz")
28     depends=(${depends[@]} libpng12)
29     md5sums=('afe482e04ce3f51c94915e07c3aff3b0'
30              '46e677cc851698ac101d42b6140b6047'
31              '70b2a6a2618ee9823ab564b4e945c885')
32     ;;
33 esac
35 build() {
36   cd $srcdir
38 cat > skulltag.sh << EOF
39 #!/bin/sh
40 export LD_LIBRARY_PATH=/usr/share/skulltag/lib
41 exec /usr/share/skulltag/skulltag "\$@"
42 EOF
44 cat > skulltag-server.sh << EOF
45 #!/bin/sh
46 export LD_LIBRARY_PATH=/usr/share/skulltag/lib
47 exec /usr/share/skulltag/skulltag-server "\$@"
48 EOF
50   install -Dm644 "announcer/Skulltag_98a_announcer.pk3" "$pkgdir/usr/share/skulltag/announcer/Skulltag_98a_announcer.pk3"
51   for fn in skins/*; do
52     install -Dm644 "$fn" "$pkgdir/usr/share/skulltag/$fn"
53   done
54   install -Dm644 "Skulltag Version History.txt" "$pkgdir/usr/share/skulltag/Skulltag Version History.txt"
55   install -Dm644 "skulltag_data.pk3" "$pkgdir/usr/share/skulltag/skulltag_data.pk3"
56   install -Dm644 "skulltag.pk3" "$pkgdir/usr/share/skulltag/skulltag.pk3"
57   install -Dm755 "liboutput_sdl.so" "$pkgdir/usr/share/skulltag/lib/liboutput_sdl.so"
58   install -Dm755 "libsnes_spc.so" "$pkgdir/usr/share/skulltag/lib/libsnes_spc.so"
59   install -Dm755 "skulltag" "$pkgdir/usr/share/skulltag/skulltag"
60   install -Dm755 "skulltag-server" "$pkgdir/usr/share/skulltag/skulltag-server"
61   install -Dm755 "skulltag.sh" "$pkgdir/usr/bin/skulltag"
62   install -Dm755 "skulltag-server.sh" "$pkgdir/usr/bin/skulltag-server"
64   case "$CARCH" in
65           i686)
66                   install -Dm755 "fmodapi42416linux/api/lib/libfmodex-4.24.16.so" "$pkgdir/usr/share/skulltag/lib/libfmodex-4.24.16.so"
67                   ;;
68           x86_64)
69                   install -Dm755 "fmodapi42416linux64/api/lib/libfmodex64-4.24.16.so" "$pkgdir/usr/share/skulltag/lib/libfmodex64-4.24.16.so"
70                   ;;
71   esac
74 # vim:set ts=2 sw=2 et: