summaryrefslogtreecommitdiff
path: root/user/assimp/APKBUILD
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2022-02-03 20:18:13 +0000
committerZach van Rijn <me@zv.io>2022-10-21 18:33:57 -0500
commitcefcb0cac3b9bbfaa9091f2f587abd33c10803e9 (patch)
tree80763b842b6628197baa3e22fb6577ab4a374cc6 /user/assimp/APKBUILD
parent9a446f062668ab3e8728ccf352f306aeea95ac99 (diff)
downloadpackages-cefcb0cac3b9bbfaa9091f2f587abd33c10803e9.tar.gz
packages-cefcb0cac3b9bbfaa9091f2f587abd33c10803e9.tar.bz2
packages-cefcb0cac3b9bbfaa9091f2f587abd33c10803e9.tar.xz
packages-cefcb0cac3b9bbfaa9091f2f587abd33c10803e9.zip
user/assimp: new package.
Diffstat (limited to 'user/assimp/APKBUILD')
-rw-r--r--user/assimp/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/user/assimp/APKBUILD b/user/assimp/APKBUILD
new file mode 100644
index 000000000..f175ac05b
--- /dev/null
+++ b/user/assimp/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: Russ Webber <russ@rw.id.au>
+# Maintainer: Zach van Rijn <me@zv.io>
+pkgname=assimp
+pkgver=5.2.0
+pkgrel=0
+pkgdesc="Open Asset Import Library imports and exports 3D model formats"
+url="http://www.assimp.org/"
+arch="all" # FIXME: might fail to build on big-endian?
+license="BSD-3-Clause"
+depends=""
+makedepends="cmake minizip-dev zlib-dev"
+subpackages="$pkgname-dev"
+source="https://github.com/assimp/assimp/archive/$pkgver/assimp-$pkgver.tar.gz
+ 01-rm-revision-test.patch
+ 05-remove-failing-x86-test.patch
+ restore-pbrmaterial-glossy-macro.patch
+ "
+
+build() {
+ cmake -B build \
+ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DASSIMP_BUILD_TESTS=True
+ make -C build
+}
+
+check() {
+ CTEST_OUTPUT_ON_FAILURE=TRUE make -C build test
+}
+
+package() {
+ make -C build DESTDIR="$pkgdir" install
+ rm -vf "$pkgdir"/usr/lib/libIrrXML.a
+}
+sha512sums="fe57e528520843747e5299f7f66418f3186a8a581d1b2822f2bdeaa331c6a970cb2ce65b492f7ae60b949d321b342dc9948cebd657727447b35ad8317c058431 assimp-5.2.0.tar.gz
+535a80c5899a2994735e7b17b4e3fdb3ff2b53e64c09ec8fcab1dbcea2ad696fed50aeb1667a3c4e00a8a3ddf411d33ec1d36fcb256e26f02cf951f0e2c83a73 01-rm-revision-test.patch
+bfb321b8493b2ef8c35ab0627173d0f1754519e9bae6f6c59cc164aaf91a07d8ae382fbc92550cfab6f52502565390ba22b7478efa5bba008eec0aa075c5e7d1 05-remove-failing-x86-test.patch
+d582ccbf645e0ac133cdc27a47da7b281202b1615c014e32c823dace03f2a58658434e5d93409151f19f45ea304e28b1a22477cdc566375c82b32cf046a6bb9d restore-pbrmaterial-glossy-macro.patch"