updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / tremulous-gpp / PKGBUILD
blob01675f6e6c44bc318708dc45eff3823c7c8395c4
1 # Contributor: Daenyth <Daenyth+Arch AT gmail DOT com>
3 pkgname=tremulous-gpp
4 pkgver=1
5 pkgrel=4
6 pkgdesc="The Gameplay Preview (beta) for Tremulous 1.2"
7 arch=(i686 x86_64)
8 url="http://tremulous.net"
9 license=('GPL')
10 depends=('tremulous-data=1.1.0' 'sdl' 'openal>=1.7.411')
11 makedepends=(mesa)
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')
18 options=('!strip')
20 # Change this to 'debug' if you want debugging symbols enabled
21 _maketarget='release'
23 build() {
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
34 package() {
35   cd $srcdir/tremulous/tremulous-ggp1-src
37   install -dm755 $pkgdir/opt/tremulous
39   # Install Binaries
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
44   # Install data files
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: