# Maintainer: Frederic Bezies # Contributor: Elrond46 # Contributor: Zohar Malamant # Contributor: Arkham # Contributor: Christoph Zeiler # Contributor: Dmitry Shilov pkgname=doomsday pkgver=2.2.1 pkgrel=2 pkgdesc="An advanced Doom engine that supports DOOM, Heretic and Hexen." url="http://dengine.net/" arch=('i686' 'x86_64') license=('GPL2') conflicts=('doomsday-bin') provides=('assimp') depends=('hicolor-icon-theme' 'qt5-x11extras' 'sdl2_mixer' 'fluidsynth' 'lib32-fluidsynth' 'openal' 'libxrandr' 'minizip') makedepends=('imagemagick' 'cmake' 'xorg-server-devel' 'assimp' 'python') optdepends=('doom1-wad: Doom shareware', 'heretic1-wad: Heretic shareware', 'hexen1-wad: Hexen shareware' 'soundfont-fluid') source=("http://files.dengine.net/archive/doomsday-$pkgver.tar.gz") sha256sums=('116dad77943658097183a0b7ddb92a3354fb3c6996cddfc0517da1b15ce0e806') build() { # Enter build directory cd $srcdir/$pkgname-$pkgver/$pkgname # Generate makefiles using qmake mkdir -p build cd build cmake .. -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib make } package() { cd $srcdir/$pkgname-$pkgver/$pkgname/build make install DESTDIR="$pkgdir" # Delete the contents of /usr/include/assimp as this package already provides it rm -r $pkgdir/usr/include/assimp # 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" # For Music echo "Do not forget to start fluidsynth service after adding your soundfonts to etc/conf.d/fluidsynth (SOUND_FONT line) if you want to use fluidsynth music output" }