1 # Contributor: Curtis Smith <kman922002@gmail.com>
5 pkgdesc="A free client/server multiplayer game engine for the classic FPS Doom"
7 url="http://odamex.net/"
11 depends=('wxgtk' 'sdl' 'sdl_mixer>=1.2.6')
12 makedepends=('subversion')
13 source=(odamex.desktop \
16 md5sums=('b353a68ffb46a61c27272367e625ce50'
17 '937a0effa783659dd2c38f3c3ae109f7'
18 '0e1555286931a74c172582714756298f')
20 _svntrunk=http://odamex.net/svn/root/trunk/
25 msg "Connecting to SVN server..."
26 msg "Checking out $_svnmod"
27 yes "p" | svn co $_svntrunk $_svnmod
28 msg "SVN checkout done or server timeout"
29 msg "Starting build..."
30 cp -r $_svnmod $_svnmod-build
33 sed -i 's/-O2/-O0/g' $startdir/src/$_svnmod-build/Makefile
34 # change iwad directory
35 sed -i 's|getenv("DOOMWADDIR")|"/usr/share/doom"|g' {client,server}/src/d_main.cpp
38 make INSTALLDIR=$startdir/pkg/usr/bin install
40 cd $startdir/src/$_svnmod-build/odalaunch
42 cd $startdir/src/$_svnmod-build/
44 mkdir -p $startdir/pkg/usr/share/applications
45 install -m755 -D odalaunch/odalaunch $startdir/pkg/usr/bin/odalaunch
46 install -m644 -D odamex.wad $startdir/pkg/usr/share/doom/odamex.wad
47 install -m644 -D media/icon_odamex_96.png $startdir/pkg/usr/share/pixmaps/odamex.png
48 install -m644 -D media/icon_odasrv_96.png $startdir/pkg/usr/share/pixmaps/odasrv.png
49 install -m644 -D media/icon_odalaunch_96.png $startdir/pkg/usr/share/pixmaps/odalaunch.png
50 install -m644 $startdir/oda{mex,srv,launch}.desktop $startdir/pkg/usr/share/applications