summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2022-06-06 21:33:30 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2022-06-06 21:33:30 -0700
commit5b0cd4c0ee4126dd4a00d829f54fdde31f0debeb (patch)
tree07495f9df6b0051cca240536fa20ee72098fe013
downloadrecastnavigation-openmw-5b0cd4c0ee4126dd4a00d829f54fdde31f0debeb.tar.xz
Initial commit
-rw-r--r--PKGBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..d9857fb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: jc_gargma <jc_gargma@iserlohn-fortress.net>
+# Maintainer (AUR): Lone_Wolf <lone_wolf@klaas-de-kat.nl>
+# Contributor (AUR): acxz <akashpatel2008 at yahoo dot com>
+
+# # I maintain this because:
+# Arch lacks this package and openmw relies on it
+
+pkgname=recastnavigation-openmw
+_pkgname=recastnavigation
+# since recastnavigation hasn't had an official release in a long time
+# but is now in debian repos maintained by an openmw dev
+# https://packages.debian.org/source/sid/recastnavigation
+_pkgver=1.5.1
+pkgver=1.5.1.r754.e75adf8
+pkgrel=1
+pkgdesc="Navigation-mesh Toolset for openmw"
+url="https://github.com/recastnavigation/recastnavigation"
+arch=(x86_64)
+license=('Zlib')
+makedepends=(git cmake sdl2 glut)
+source=("git+https://github.com/recastnavigation/recastnavigation.git#commit=e75adf86f91eb3082220085e42dda62679f9a3ea")
+sha256sums=("SKIP")
+conflicts=('recastnavigation')
+options=(debug strip)
+
+pkgver() {
+ cd $_pkgname
+ printf "%s.r%s.%s" "${_pkgver}" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ # an adjustment of the example in wiki usable when upstream doesn't use tags (or neglects to maintain them)
+}
+
+build() {
+ cmake \
+ -B _build \
+ -S "$srcdir/$_pkgname" \
+ -D CMAKE_BUILD_TYPE=None \
+ -D CMAKE_INSTALL_PREFIX=/usr \
+ -D BUILD_SHARED_LIBS=ON \
+ -D RECASTNAVIGATION_DEMO=OFF \
+ -D RECASTNAVIGATION_TESTS=OFF \
+ -D RECASTNAVIGATION_EXAMPLES=OFF
+ VERBOSE=1 make -C _build
+}
+
+package() {
+depends=(sdl2 glut)
+ make DESTDIR="$pkgdir" -C _build install
+ install -Dm644 "$srcdir"/$_pkgname/License.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}