1 # Contributor: Daenyth <Daenyth+Arch AT gmail DOT com>
6 pkgdesc="The Gameplay Preview (beta) for Tremulous 1.2"
8 url="http://tremulous.net"
10 depends=('tremulous-data=1.1.0' 'sdl' 'openal>=1.7.411')
12 source=(http://downloads.sourceforge.net/tremulous/$pkgname$pkgver.zip
13 tremulous.launcher tremded.launcher tremulous.desktop)
14 md5sums=('70a32d6e587e4ac67bdfd0be7d6edc2f'
15 '5956668857a27d7a4c45686a4a697034'
16 '37f98a905e63759526a62b07b613786b'
17 '7023a343ca51d438b710d4e8e804a368')
20 # Change this to 'debug' if you want debugging symbols enabled
24 cd "$srcdir/tremulous"
26 # Unpack the sources and build
27 bsdtar -xf $pkgname$pkgver-src.tar.gz || return 1
28 cd "tremulous-ggp$pkgver-src/"
29 sed -i 's/openal-config/pkg-config/g' Makefile
30 make $_maketarget || return 1
35 cd $srcdir/tremulous/tremulous-ggp1-src
37 install -dm755 $pkgdir/opt/tremulous
40 local _arch=${CARCH/i686/x86}
41 install -m755 build/$_maketarget-linux-$_arch/*.$_arch $pkgdir/opt/tremulous
42 for bin in $pkgdir/opt/tremulous/*.$_arch; do mv $bin ${bin/./-gpp.}; done
45 install -d -m755 $pkgdir/opt/tremulous/gpp
46 install -m644 $srcdir/tremulous/gpp/*.{pk3,cfg} $pkgdir/opt/tremulous/gpp/
48 # Install Client Launcher
49 install -D -m755 $srcdir/tremulous.launcher $pkgdir/usr/bin/tremulous-gpp
51 # Install Server Launcher
52 install -D -m755 $srcdir/tremded.launcher $pkgdir/usr/bin/tremded-gpp
54 # Install Desktop Icons
55 install -D -m644 $srcdir/tremulous.desktop $pkgdir/usr/share/applications/tremulous-gpp.desktop
56 install -D -m644 misc/tremulous.xpm $pkgdir/usr/share/pixmaps/tremulous-gpp.xpm
59 # vim:set ts=2 sw=2 et: