1 # Contributor: Paul Bredbury <brebs@sent.com>
6 pkgdesc="Enhanced Quake 2 engine"
8 url="http://qudos.quakedev.com/"
10 # glib is required if compiling with xmms.
11 # Needs sdl to compile.
12 depends=('libjpeg' 'libpng' 'libvorbis' 'libxxf86vm' 'mesa' 'sdl')
13 makedepends=('subversion' 'xf86vidmodeproto')
17 source=(qudos.desktop)
18 md5sums=('b8be459dbd697855dfc8294c1c6a032b')
20 _svntrunk="svn://svn.quakedev.com/qudos/trunk"
22 _gamedir="/usr/share/quake2"
23 _libdir="/usr/lib/qudos"
28 msg "Checking for previous build"
29 if [[ -d $_svnmod/.svn ]]; then
30 msg "Retrieving updates"
32 svn co $_svntrunk || return 1
34 msg "Retrieving complete sources"
35 svn co $_svntrunk || return 1
40 make clean || return 1
42 # Favours OpenGL over SDL - it does not lose focus when audacious/xmms starts.
43 # XMMS is disabled because the Makefile blindly assumes it is installed.
44 # OSS works on x86_64.
58 if [ "$CARCH" == "x86_64" ]; then
59 # Avoid "qudos: symbol lookup error: /usr/lib/games/qudos/snd_alsa.so: undefined symbol: Q_malloc".
60 # These drivers get built regardless of the Makefile settings.
61 rm -f quake2/snd_{alsa,sdl}.so
64 mkdir -p $startdir/pkg/$_libdir
65 cp -r quake2/* $startdir/pkg/$_libdir || return 1
66 rm $startdir/pkg/$_libdir/QuDos
68 install -D -m755 quake2/QuDos $startdir/pkg/usr/bin/qudos || return 1
69 install -D -m644 data/qudos.pk3 $startdir/pkg/$_libdir/baseq2/qudos.pk3 || return 1
72 install -D -m644 src/unix/Q2.png $startdir/pkg/usr/share/pixmaps/qudos.png || return 1
73 install -D -m644 $startdir/src/qudos.desktop $startdir/pkg/usr/share/applications/qudos.desktop || return 1
76 mkdir -p $startdir/pkg/usr/share/doc/qudos
77 cp docs/{QuDos,Ogg_readme,todo}.txt $startdir/pkg/usr/share/doc/qudos/ || return 1