diff options
Diffstat (limited to 'pcr/prboom-plus/PKGBUILD')
-rw-r--r-- | pcr/prboom-plus/PKGBUILD | 62 |
1 files changed, 37 insertions, 25 deletions
diff --git a/pcr/prboom-plus/PKGBUILD b/pcr/prboom-plus/PKGBUILD index c5f73e8eb..887e38617 100644 --- a/pcr/prboom-plus/PKGBUILD +++ b/pcr/prboom-plus/PKGBUILD @@ -1,38 +1,50 @@ -# Maintainer (AUR): Kingan <kingan201 at gmail dot com> -# Contributor (AUR): Frederic Bezies <fredbezies at gmail dot com> -# Contributor (AUR): Valsu [arch(at)hylia.de] - -# parabola changes and rationale: -# - use --disable-cpu-opt, otherwise it use -mach=native and the resulting -# binary is only meant to run on the machine that compiled it: this option -# generates SMID (SSE3, AVX, etc) instructions in a way that is impossible to -# disable it at runtime. So running it on a machine without the same extended -# instruction set generally result in illegal instructions. +# Maintainer (aur): Kingan <kingan201 at gmail dot com> +# Contributor: Frederic Bezies <fredbezies at gmail dot com> +# Contributor: Valsu [arch(at)hylia.de] pkgname=prboom-plus -pkgver=2.5.1.4 -pkgrel=2 +pkgver=2.6.2 +pkgrel=1 pkgdesc='An advanced, Vanilla-compatible Doom engine based on PrBoom' -url='http://prboom-plus.sourceforge.net/' -arch=('x86_64' 'i686') -arch+=('armv7h') +url='https://github.com/coelckers/prboom-plus' +arch=('x86_64') +arch+=('armv7h' 'i686') license=('GPL2') -depends=('fluidsynth' 'glu' 'libmad' 'portmidi' 'sdl_image' 'sdl_mixer' 'sdl_net') -conflicts=('prboom') -replaces=('prboom') -provides=('prboom') -source=("http://download.sourceforge.net/prboom-plus/prboom-plus-$pkgver.tar.gz") -sha256sums=('e0e2241d174839b107f1a42b191aa9895dc6749e477cbc850ad520fba2353b94') +depends=('sdl2') +optdepends=('dumb' + 'fluidsynth' + 'glu' + 'libmad' + 'libvorbis' + 'pcre' + 'portmidi' + 'sdl2_image' + 'sdl2_mixer' + 'sdl2_net') +makedepends=('cmake') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/coelckers/prboom-plus/archive/refs/tags/v$pkgver.tar.gz") +sha1sums=('363471156b15e3927227ff4406670fdcd9725a74') + +_rootdir="prboom-plus-${pkgver}/prboom2" +_builddir="${_rootdir}/cbuild" + +prepare() { + cd "${srcdir}" + sed -i -E 's/mktemp/mkstemp/g' $(find "${_rootdir}" -type f -name r_demo.c) +} build() { - cd "prboom-plus-$pkgver" + cd "${srcdir}" + + mkdir -p "${_builddir}" + cd "${_builddir}" - ./configure --prefix=/usr --without-dumb --disable-cpu-opt + cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ../ make } package() { - cd "prboom-plus-$pkgver" + cd "${srcdir}/${_builddir}" - make DESTDIR="$pkgdir" gamesdir=/usr/bin install + make DESTDIR="${pkgdir}" gamesdir=/usr/bin install } |