summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2022-10-14 20:50:10 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2022-10-15 20:01:23 -0400
commit51d741c8d6aaa17e0e68c893fc2b43a9bfa9c492 (patch)
treed9105b53821683f467f7daf262da9a4050f09590 /pcr
parentd3cb63a93afccf186079425c746845f044ce8c91 (diff)
[prboom-plus]: upgrade to v2.6.2
Diffstat (limited to 'pcr')
-rw-r--r--pcr/prboom-plus/PKGBUILD56
1 files changed, 34 insertions, 22 deletions
diff --git a/pcr/prboom-plus/PKGBUILD b/pcr/prboom-plus/PKGBUILD
index 1a1e3b66f..887e38617 100644
--- a/pcr/prboom-plus/PKGBUILD
+++ b/pcr/prboom-plus/PKGBUILD
@@ -2,37 +2,49 @@
# Contributor: Frederic Bezies <fredbezies at gmail dot com>
# Contributor: 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.
-
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
}