summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMike Swanson2018-11-02 21:33:12 -0700
committerMike Swanson2018-11-02 21:33:12 -0700
commit93810a97ea8f58cf1216d94996c206208ea8a4cd (patch)
tree25acf9eefe78c7fb660cc5f6118f084882f098a0 /PKGBUILD
parent33aaa541709d4ac70ed29840be931f3321d2f855 (diff)
downloadaur-93810a97ea8f58cf1216d94996c206208ea8a4cd.tar.gz
Update to current HEAD, add desktop entry
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD35
1 files changed, 20 insertions, 15 deletions
diff --git a/PKGBUILD b/PKGBUILD
index bdd4f04a8ef..3579fbddb79 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,34 +1,39 @@
-# Maintainer: Andrew Rabert <draje@nullsum.net>
-
-_pkgname=Doom64EX
pkgname=doom64ex-git
-pkgver=r261.c2619d1
-pkgrel=2
-pkgdesc="Doom64EX is a reverse-engineering project aimed to recreate Doom64 as close as possible with additional modding features."
+pkgver=0.r287.03a5e6a
+pkgrel=1
+pkgdesc="Engine recreation of Doom 64, requires N64 ROM (not included)."
arch=('i686' 'x86_64')
url="https://github.com/svkaiser/Doom64EX"
license=('GPL2')
depends=('fluidsynth' 'libpng' 'sdl2' 'sdl2_net' 'zlib')
makedepends=('cmake' 'git')
-source=("git+$url")
-sha256sums=('SKIP')
+install=doom64ex.install
+source=("${pkgname}::git+${url}"
+ doom64ex.desktop)
+sha512sums=('SKIP'
+ 'ae87f565d150400bc95a38841aa39bd5e851f16d7ea6f5090e39a42811700bcdeef567f0ee6966a81911561e6de6c422c66072ddb62ba52940e314e367a1a826')
pkgver() {
- cd "${srcdir}/${_pkgname}"
+ cd "$srcdir/$pkgname"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
- cd "${srcdir}/${_pkgname}"
+ mkdir "$srcdir/$pkgname/build"
+ cd "$srcdir/$pkgname/build"
- cmake . -DCMAKE_INSTALL_PREFIX=/usr \
- -DENABLE_SYSTEM_FLUIDSYNTH=ON
+ cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
+ -DENABLE_SYSTEM_FLUIDSYNTH=ON
make
}
package() {
- cd "${srcdir}/${_pkgname}"
+ cd "$srcdir/$pkgname/build"
+
+ make DESTDIR="$pkgdir" install
- make DESTDIR="$pkgdir" libdir="$pkgdir/usr/lib" install
+ cd ..
+ install -Dm644 distrib/doom64ex.png "$pkgdir/usr/share/icons/doom64ex.png"
+ install -Dm644 ../doom64ex.desktop "$pkgdir/usr/share/applications/doom64ex.desktop"
}