1 # Contributor: Jan Cholasta <grubber@grubber.cz>
2 # Maintainer: Jan Cholasta <grubber@grubber.cz>
7 pkgdesc="Doom source port based on ZDoom with an OpenGL renderer."
9 url="http://grafzahl.drdteam.org/"
11 depends=('bzip2' 'gtk2' 'fluidsynth' 'sdl' 'mesa')
12 makedepends=('nasm' 'cmake' 'subversion')
13 optdepends=('doom1-wad: Doom shareware IWAD (game data)'
14 'harmony-wad: Harmony IWAD (game data)'
15 'heretic1-wad: Heretic shareware IWAD (game data)'
16 'hexen1-wad: Hexen 1 Demo IWAD (game data)'
17 'strife0-wad: Strife shareware IWAD (game data)'
18 'urbanbrawl-wad: Urban Brawl: Action Doom 2 IWAD (game data)')
19 source=(http://www.fmod.org/index.php/release/version/fmodapi42816linux.tar.gz \
20 ${pkgname}-${pkgver}-sharedir.patch \
23 md5sums=('e6d1a9c8565051a983af7bcc5c4d9cfb'
24 'a05dae9352e4e798c847b7e46786284a'
25 '3f5920d839086c9ad04ed1338c3fb546'
26 '7e1518eeda9bab34b7222a04c690697d')
28 _pkg_svntrunk="http://mancubus.net/svn/hosted/gzdoom/tags/${pkgver}/"
29 _pkg_svnmod="${pkgname}-${pkgver}"
34 if [ "$CARCH" = "x86_64" ]; then
36 source[0]=http://www.fmod.org/index.php/release/version/fmodapi42816linux64.tar.gz
37 md5sums[0]='b6953f9331c72f9dfa95b31a41aa77b2'
44 if [ -d $_pkg_svnmod/.svn ]; then
45 (cd $_pkg_svnmod && svn up)
47 svn co $_pkg_svntrunk --config-dir ./ $_pkg_svnmod
50 msg "SVN checkout done or server timeout"
51 msg "Starting make..."
53 rm -rf "$srcdir/$_pkg_svnmod-build"
54 cp -r "$srcdir/$_pkg_svnmod" "$srcdir/$_pkg_svnmod-build"
55 cd "$srcdir/$_pkg_svnmod-build"
61 patch -p1 < ../${pkgname}-${pkgver}-sharedir.patch || return 1
63 cp ../fmodapi${_fmodver//./}linux${_fmod64}/api/lib/libfmodex${_fmod64}-${_fmodver}.so libfmodex-${pkgname}.so || return 1
65 cmake -DFMOD_INCLUDE_DIR=../fmodapi${_fmodver//./}linux${_fmod64}/api/inc -DFMOD_LIBRARY=libfmodex-${pkgname}.so -DCMAKE_SKIP_RPATH=TRUE . || return 1
70 cd "$srcdir"/${_pkg_svnmod}-build
72 install -m755 -D gzdoom "$pkgdir"/usr/bin/gzdoom
73 install -m644 -D gzdoom.pk3 "$pkgdir"/usr/share/games/gzdoom/gzdoom.pk3
74 install -m644 -D docs/BUILDLIC.TXT "$pkgdir"/usr/share/licenses/${pkgname}/BUILDLIC.TXT
75 install -m644 -D docs/doomlic.txt "$pkgdir"/usr/share/licenses/${pkgname}/doomlic.txt
77 install -m755 -D libfmodex-${pkgname}.so "$pkgdir"/usr/lib/libfmodex-${pkgname}.so
79 install -m644 -D ../gzdoom.png "$pkgdir"/usr/share/pixmaps/gzdoom.png
80 install -m644 -D ../gzdoom.desktop "$pkgdir"/usr/share/applications/gzdoom.desktop