updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / tremfusion-hg / PKGBUILD
blobeaa95072f8b76f6ba3d6cc0f63046663713f436e
1 # Contributor: FrozenFox <frozenfoxz@gmail.com>
3 pkgname=tremfusion-hg
4 pkgver=20091030
5 pkgrel=2
6 pkgdesc="Community updated Tremulous client (devel)"
7 arch=('i686' 'x86_64')
8 url="http://www.tremfusion.net/"
9 license=('GPL')
10 depends=('tremulous' 'curl' 'directfb' 'freetype2' 'libogg' 'ncurses' 'sdl')
11 makedepends=('mercurial')
12 optdepends=("openal: OpenAL audio support")
13 conflicts=('tremfusion')
14 provides=('tremfusion')
15 options=(!emptydirs)
16 install=tremfusion.install
17 conflicts=('tremfusion')
18 source=('http://www.tremfusion.net/downloads/z-tremfusion-menu-0.99r3.pk3'
19         'tremfusion.desktop'
20         'tremfusion.png')
21 md5sums=('e04e75d705351d3450923a6dc1fd0cd8'
22          'f49d5326d4fdfde01730dbdf0338e360'
23          '1dd34741fd50422f8103da142afddcc7')
24 _hgroot="http://www.tremfusion.net/hg/tremfusion/default"
26 build() {
27   # Download the source
28   msg "Connecting to mercurial server..."
29   hg clone $_hgroot
30   cd default
32   # Compile and install the game binaries
33   make || return 1
34   make DESTDIR=${pkgdir} \
35        BUILDROOT=${pkgdir} \
36        INSTALL_PREFIX="/opt/tremulous" \
37        BINDIR="/usr/bin" \
38        DATADIR="/opt" \
39        LIBDIR="/opt/tremulous" install || return 1
41   # Install the game data
42   install ${srcdir}/*.pk3 ${pkgdir}/opt/tremulous/tremfusion || return 1
43   install ${srcdir}/default/build/release*/base/ui*.so \
44           ${pkgdir}/opt/tremulous/tremfusion || return 1
46   # Install the icon and start menu entry
47   install -m0644 -D ${srcdir}/tremfusion.png \
48                     ${pkgdir}/usr/share/pixmaps/tremfusion.png || return 1
49   install -m0644 -D ${srcdir}/tremfusion.desktop \
50                     ${pkgdir}/usr/share/applications/tremfusion.desktop || return 1