1 # Contributor: Jan Cholasta <grubber@grubber.cz>
2 # Maintainer: Jan Cholasta <grubber@grubber.cz>
7 pkgdesc="An enhanced Doom port with additional support for Heretic, Hexen and Strife."
9 url="http://www.zdoom.org/"
11 depends=('bzip2' 'gtk2' 'sdl')
12 makedepends=('nasm' 'cmake' 'p7zip')
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://zdoom.org/files/zdoom/2.5/zdoom-${pkgver}-src.7z \
20 http://www.fmod.org/index.php/release/version/fmodapi42816linux.tar.gz \
21 ${pkgname}-${pkgver}-sharedir.patch \
24 md5sums=('26afe95fb9fd28d91662563674bbb86e'
25 'e6d1a9c8565051a983af7bcc5c4d9cfb'
26 '967d8639f90678f13e1e2886b2c8d7e6'
27 '83e47fdae2768da78cd4ac151ec92ad1'
28 '7e1518eeda9bab34b7222a04c690697d')
33 if [ "$CARCH" = "x86_64" ]; then
35 source[1]=http://www.fmod.org/index.php/release/version/fmodapi42816linux64.tar.gz
36 md5sums[1]='b6953f9331c72f9dfa95b31a41aa77b2'
41 msg2 "Extracting ${pkgname}-${pkgver}-src.7z with 7z"
42 7z x -y -o"$srcdir"/${pkgname}-${pkgver} "$srcdir"/${pkgname}-${pkgver}-src.7z &> /dev/null
44 cd "$srcdir"/${pkgname}-${pkgver}
46 patch -p1 < ../${pkgname}-${pkgver}-sharedir.patch || return 1
48 cp ../fmodapi${_fmodver//./}linux${_fmod64}/api/lib/libfmodex${_fmod64}-${_fmodver}.so libfmodex-${pkgname}.so || return 1
50 cmake -DFMOD_INCLUDE_DIR=../fmodapi${_fmodver//./}linux${_fmod64}/api/inc -DFMOD_LIBRARY=libfmodex-${pkgname}.so -DCMAKE_SKIP_RPATH=TRUE . || return 1
55 cd "$srcdir"/${pkgname}-${pkgver}
57 install -m755 -D zdoom "$pkgdir"/usr/bin/zdoom
58 install -m644 -D zdoom.pk3 "$pkgdir"/usr/share/games/zdoom/zdoom.pk3
59 install -m644 -D docs/BUILDLIC.TXT "$pkgdir"/usr/share/licenses/${pkgname}/BUILDLIC.TXT
60 install -m644 -D docs/doomlic.txt "$pkgdir"/usr/share/licenses/${pkgname}/doomlic.txt
62 install -m755 -D libfmodex-${pkgname}.so "$pkgdir"/usr/lib/libfmodex-${pkgname}.so
64 install -m644 -D ../zdoom.png "$pkgdir"/usr/share/pixmaps/zdoom.png
65 install -m644 -D ../zdoom.desktop "$pkgdir"/usr/share/applications/zdoom.desktop