updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / tremfusion / PKGBUILD
blob881d8ecc9f44a8f8663745af8ad004d25ff6a782
1 # Maintainer: Thomas Dziedzic < gostrc at gmail >
2 # Contributor: Dario `dax` Vilardi <dax@deelab.org>
3 # Contributor: Frozen Fox <frozenfoxz@gmail.com>
5 pkgname=tremfusion
6 pkgver=0.99r3
7 pkgrel=13
8 pkgdesc='Community updated Tremulous client.'
9 url='http://tremfusion.net'
10 arch=('i686' 'x86_64')
11 license=('GPL')
12 depends=('tremulous' 'curl' 'directfb' 'freetype2' 'libogg' 'ncurses' 'sdl')
13 optdepends=("openal: OpenAL audio support")
14 install=tremfusion.install
15 conflicts=('tremfusion-hg')
16 source=("http://www.tremfusion.net/releases/0.99/r3/Tremfusion-0.99r3-linux32.tar.bz2"
17         'tremfusion.png'
18         'tremfusion.desktop'
19         'tremfusion.sh'
20         'tremfusion-tty.sh'
21         'tremfusionded.sh')
22 md5sums=('3d6df33585ad406d7ebde8ef23c1826a'
23          '1dd34741fd50422f8103da142afddcc7'
24          'f49d5326d4fdfde01730dbdf0338e360'
25          'd6d6147de0a6ef7d1c994f3d109b98af'
26          'd6d6147de0a6ef7d1c994f3d109b98af'
27          'd6d6147de0a6ef7d1c994f3d109b98af')
28 [ "$CARCH" = "x86_64" ] && \
29   source[0]="http://www.tremfusion.net/releases/0.99/r3/Tremfusion-0.99r3-linux64.tar.bz2" && \
30   md5sums[0]="c58c97bb9f1b99e683e1c35d6c1b1a51"
32 build() {
33   # Install the .desktop and icon files
34   install -Dm644 "$srcdir/tremfusion.desktop" "$pkgdir/usr/share/applications/tremfusion.desktop"
35   install -Dm644 "$srcdir/tremfusion.png" "$pkgdir/usr/share/pixmaps/tremfusion.png"
37   # Copy the executable files
38   # Note: The binaries are compiled against /usr/local/bin
39   #       So, this is the simplest and cleanest workaround
40   install -Dm755 "$srcdir/tremulous" "$pkgdir/opt/tremulous/tremfusion/tremfusion"
41   install -Dm755 "$srcdir/tremulous-tty" "$pkgdir/opt/tremulous/tremfusion/tremfusion-tty"
42   install -Dm755 "$srcdir/tremded" "$pkgdir/opt/tremulous/tremfusion/tremfusionded"
43   install -Dm755 "$srcdir/tremfusion.sh" "$pkgdir/usr/bin/tremfusion"
44   install -Dm755 "$srcdir/tremfusion-tty.sh" "$pkgdir/usr/bin/tremfusion-tty"
45   install -Dm755 "$srcdir/tremfusionded.sh" "$pkgdir/usr/bin/tremfusionded"
47   # Copy game data files
48   install -Dm644 "$srcdir/z-tremfusion-menu-0.99r3.pk3" "$pkgdir/opt/tremulous/tremfusion/z-tremfusion-menu-0.99r3.pk3"
49   if [ $CARCH = "x86_64" ] ; then
50      install -Dm644 "$srcdir/gamex86_64.so" "$pkgdir/opt/tremulous/tremfusion/gamex86_64.so"
51   else
52      install -Dm644 "$srcdir/gamex86.so" "$pkgdir/opt/tremulous/tremfusion/gamex86.so"
53   fi