1 # Maintainer: Mikael Eriksson <mikael_eriksson@miffe.org>
2 # Contributor: Thomas Dziedzic < gostrc at gmail >
3 # Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
4 # Contributor: Curtis Smith <kman922002@gmail.com>
9 pkgdesc='A free client/server multiplayer engine for the classic FPS Doom.'
10 arch=('i686' 'x86_64')
11 url='http://odamex.net/'
13 depends=('sdl_mixer>=1.2.6')
14 optdepends=('timidity++: Required for music')
15 source=("http://downloads.sourceforge.net/odamex/odamex-src-${pkgver}.tar.bz2"
16 0001-Archlinux-timidity.cfg-path-fix.patch)
17 md5sums=('acc6aeac1ae9e4cd3504400a3a17178f'
18 'edff0a056f17581ab532f267017ba967')
21 cd odamex-src-${pkgver}
23 patch -p1 -i "$srcdir/0001-Archlinux-timidity.cfg-path-fix.patch"
25 sed 's|getenv("DOOMWADPATH")|"/usr/share/doom"|g' -i {client,server}/src/d_main.cpp
27 make CFLAGS="${CXXFLAGS} -DUNIX -DLINUX -DNOASM -Icommon" odamex odasrv
29 install -Dm755 odamex "$pkgdir/usr/bin/odamex"
30 install -Dm755 odasrv "$pkgdir/usr/bin/odasrv"
31 install -Dm644 odamex.wad "$pkgdir/usr/share/doom/odamex.wad"
32 install -Dm644 media/icon_odamex_96.png "$pkgdir/usr/share/pixmaps/odamex.png"
33 install -Dm644 media/icon_odasrv_96.png "$pkgdir/usr/share/pixmaps/odasrv.png"
34 install -Dm644 installer/arch/odamex.desktop "$pkgdir/usr/share/applications/odamex.desktop"
35 install -Dm644 installer/arch/odasrv.desktop "$pkgdir/usr/share/applications/odasrv.desktop"
38 # vim:set ts=2 sw=2 et: