summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d9e5799c1e7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Mike Cuche <cuche@gmx.com>
+pkgname=dsda-doom-git
+pkgver=r3488.4b2c6a8c
+pkgrel=1
+pkgdesc="Fork of PrBoom+ with extra tooling for demo recording and playback, with a focus on speedrunning (git version)"
+arch=('x86_64')
+url="https://github.com/kraflab/dsda-doom"
+license=('GPL')
+depends=('fluidsynth' 'glu' 'libmad' 'portmidi' 'sdl2_image' 'sdl2_mixer' 'sdl2_net' 'dumb')
+makedepends=('deutex' 'imagemagick' 'git')
+provides=('prboom-plus')
+conflicts=('prboom-plus')
+source=('git+https://github.com/kraflab/dsda-doom.git')
+sha256sums=('SKIP')
+
+
+pkgver() {
+ cd dsda-doom
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "${srcdir}/dsda-doom/prboom2"
+ cmake . -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release
+ make
+}
+
+package() {
+ cd "${srcdir}/dsda-doom/prboom2"
+ make DESTDIR="${pkgdir}" install
+ install -Dm644 ICONS/prboom-plus.svg "${pkgdir}"/usr/share/pixmaps/prboom-plus.svg
+ install -Dm644 ICONS/prboom-plus.desktop "${pkgdir}"/usr/share/applications/prboom-plus.desktop
+}