aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClayton Craft <clayton@craftyguy.net>2020-02-07 23:39:56 -0800
committerRasmus Thomsen <oss@cogitri.dev>2020-03-07 10:39:10 +0100
commit4a3d7c3c03e2ce724ae7a4956d1c4434d410989c (patch)
treefc0046af1f80a207f058fd19c3d4ede1932ff16c
parent5ebfb4f3d02838c7f21b4a161d27e420522497e3 (diff)
downloadaports-4a3d7c3c03e2ce724ae7a4956d1c4434d410989c.tar.bz2
aports-4a3d7c3c03e2ce724ae7a4956d1c4434d410989c.tar.xz
testing/openmw: new aport
This APKBUILD is loosely based of of the PKGBUILD in Arch Linux for this package
-rw-r--r--testing/openmw/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/openmw/APKBUILD b/testing/openmw/APKBUILD
new file mode 100644
index 0000000000..86ccc378f4
--- /dev/null
+++ b/testing/openmw/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: Clayton Craft <clayton@craftyguy.net>
+# Maintainer: Clayton Craft <clayton@craftyguy.net>
+pkgname=openmw
+pkgver=0.45.0
+pkgrel=0
+_gtestver=1.8.1
+pkgdesc="Open-source engine reimplementation for the role-playing game Morrowind"
+# Note: only tested on the following archs, may work on others too but not
+# adding them until this has been confirmed
+arch="x86_64 aarch64"
+url="http://www.openmw.org"
+license="GPL-3.0-or-later"
+makedepends="cmake boost doxygen ninja mesa-dev qt5-qtbase-dev ffmpeg-dev
+ openscenegraph-dev boost-dev openal-soft-dev sdl2-dev mygui-dev bullet-dev
+ libxt-dev unshield-dev gtest-dev tinyxml-dev"
+# Two failing tets:
+# [ FAILED ] ContentFileTest.dialogue_merging_test
+# [ FAILED ] ContentFileTest.content_diagnostics_test
+options="!check"
+source="https://github.com/OpenMW/openmw/archive/openmw-$pkgver.tar.gz"
+
+builddir=$srcdir/$pkgname-$pkgname-$pkgver
+
+build() {
+ # build OpenMW
+ CXXFLAGS="$CXXFLAGS -fpermissive" cmake -B build . \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=None \
+ -DDESIRED_QT_VERSION=5 \
+ -DBUILD_WITH_CODE_COVERAGE=0 \
+ -DBUILD_UNITTESTS=1 \
+ -DUSE_SYSTEM_TINYXML=TRUE \
+ -GNinja
+ ninja -C build
+}
+
+check() {
+ ./build/openmw_test_suite
+}
+
+package() {
+ DESTDIR="$pkgdir" ninja -C build install
+}
+
+sha512sums="b968426659457cf486f6756f7ab82cc4cb34a92923c433dd86f711e5d7097f75441ed17daa50d21f15f1847f5aed1f4c3a094a06cfd3f2e9b90aa182742c596f openmw-0.45.0.tar.gz"