# Maintainer: Joan Bruguera Micó pkgname=woof-doom _pkgname=woof pkgver=14.5.0 pkgrel=1 pkgdesc="Woof! is a continuation of Lee Killough's Doom source port MBF targeted at modern systems" arch=(x86_64) url="https://github.com/fabiangreffrath/woof" license=('GPL2') depends=(sdl2 sdl2_net openal libsndfile) # FluidSynth is optional, but can not be an optdepends since it gets linked to the built executable # Required for high-quality MIDI music, you probably want it. depends+=(fluidsynth) # Ditto for libxmp with respect to optdepends. Required for tracker music, you may not want it depends+=(libxmp) optdepends=("soundfont-fluid: soundfont for MIDI playback") install=install.sh makedepends=(cmake python3) conflicts=(woof-doom-git) source=("https://github.com/fabiangreffrath/${_pkgname}/archive/refs/tags/${_pkgname}_${pkgver}.tar.gz") sha256sums=(1ad9e27ffeb70a60344e98f08bf17650856ffb51aa32cffd94468dacd9f1d42a) build() { # Use `-ffile-prefix-map` to avoid 'WARNING: Package contains reference to $srcdir' due to assert(...) cmake -B build -S "${_pkgname}-${_pkgname}_${pkgver}" \ -DCMAKE_BUILD_TYPE='None' \ -DCMAKE_INSTALL_PREFIX='/usr' \ -DCMAKE_C_FLAGS="$CFLAGS -ffile-prefix-map=$PWD=" \ -Wno-dev cmake --build build } check() { ctest --test-dir build --output-on-failure } package() { DESTDIR="$pkgdir" cmake --install build }