summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorZohar Malamant2015-08-10 17:59:24 +0200
committerZohar Malamant2015-08-10 17:59:24 +0200
commit7a774b865ba788b15a804d250855197b6e62126a (patch)
treee109596a314d9b7be74f14afbae06cfb79ce14d8
downloadaur-7a774b865ba788b15a804d250855197b6e62126a.tar.gz
Initial commit
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD67
2 files changed, 90 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5a1216c59c6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = doomsday
+ pkgdesc = An advanced Doom engine that supports DOOM, Heretic and Hexen.
+ pkgver = 1.15.0
+ pkgrel = 2
+ url = http://dengine.net/
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ makedepends = imagemagick
+ depends = qt5-base
+ depends = sdl2_net
+ depends = sdl2_mixer
+ depends = fmodex
+ depends = wxpython
+ depends = assimp
+ optdepends = doom1-wad: Doom shareware,
+ optdepends = heretic1-wad: Heretic shareware,
+ optdepends = hexen1-wad: Hexen shareware
+ source = http://code.iki.fi/builds/build1616/doomsday-stable-1.15.0.tar.gz
+ md5sums = 027e76fd6ac778c37a96d64ab9c11dfa
+
+pkgname = doomsday
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b6fe72b842e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,67 @@
+# Maintainer: Zohar Malamant <dotfloat gmail com>
+# Contributor: Arkham <arkham at archlinux dot us>
+# Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
+# Contributor: Dmitry Shilov <stormblast@land.ru>
+
+pkgname=doomsday
+pkgver=1.15.0
+pkgrel=2
+_buildnum=1616
+pkgdesc="An advanced Doom engine that supports DOOM, Heretic and Hexen."
+url="http://dengine.net/"
+arch=('i686' 'x86_64')
+license=('GPL2')
+depends=('qt5-base' 'sdl2_net' 'sdl2_mixer' 'fmodex' 'wxpython' 'assimp')
+makedepends=('imagemagick')
+optdepends=('doom1-wad: Doom shareware',
+ 'heretic1-wad: Heretic shareware',
+ 'hexen1-wad: Hexen shareware')
+source=("http://code.iki.fi/builds/build${_buildnum}/doomsday-stable-${pkgver}.tar.gz")
+md5sums=('027e76fd6ac778c37a96d64ab9c11dfa')
+
+build() {
+ # Fix annoying messages from libpng (thanks to jwm-art)
+ find ${srcdir}/doomsday-stable-${pkgver}/snowberry/graphics/*.png -exec convert {} -strip {} \;
+
+ # Force python2
+ rm -rf ${srcdir}/python
+ mkdir ${srcdir}/python
+ ln -s /usr/bin/python2 ${srcdir}/python/python
+ export PATH=${srcdir}/python:$PATH
+
+ # Enter build directory
+ cd ${srcdir}/doomsday-stable-${pkgver}/doomsday
+
+ # Fix lib64 stuff
+ sed 's/lib64/lib/g' -i macros.pri doomsday_sdk.pri
+
+ # Hack for compiling fmodex libs
+ echo -e "FMOD_DIR = \"${srcdir}/doomsday-stable-${pkgver}/doomsday/plugins/fmod\"" > config_user.pri
+ ln -sf /usr/include/fmodex/* ${srcdir}/doomsday-stable-${pkgver}/doomsday/plugins/fmod/include/
+
+ # Generate makefiles using qmake
+ mkdir -p "${srcdir}/doomsday-stable-${pkgver}/build"
+ cd "${srcdir}/doomsday-stable-${pkgver}/build"
+ qmake-qt5 -r ../doomsday/doomsday.pro CONFIG+="deng_fmod release"
+
+ # Build
+ make $MAKEFLAGS
+}
+
+package() {
+ cd ${srcdir}/doomsday-stable-${pkgver}/build
+ make INSTALL_ROOT=${pkgdir} install
+
+ cat << 'EOF' > "${pkgdir}/usr/bin/launch-doomsday"
+#!/usr/bin/env python2
+import os, sys
+os.chdir('/usr/share/doomsday/snowberry')
+sys.path += '.'
+
+import snowberry
+EOF
+
+ # Look for WADs in /usr/share/games/doom by default
+ mkdir -p "${pkgdir}/etc/doomsday"
+ echo "iwaddir: /usr/share/games/doom" > "${pkgdir}/etc/doomsday/paths"
+}