aboutsummaryrefslogtreecommitdiffstats
path: root/community/assimp/APKBUILD
blob: 14cf5987c5746bccd13d3360c190acbe0368b75a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Contributor: Russ Webber <russ@rw.id.au>
# Maintainer: Russ Webber <russ@rw.id.au>
pkgname=assimp
pkgver=5.0.1
pkgrel=1
pkgdesc="Open Asset Import Library imports and exports 3D model formats."
url="http://www.assimp.org/"
arch="all !s390x !mips !mips64" # fails to build on big-endian
license="BSD-3-Clause"
makedepends="
	cmake
	minizip-dev
	zlib-dev
	"
subpackages="$pkgname-dev"
source="https://github.com/assimp/assimp/archive/v$pkgver/assimp-v$pkgver.tar.gz
	01-rm-revision-test.patch
	02-fix-ssize-32bit.patch
	03-fix-aiGetLegalStringTest.patch
	04-fix-unittests.patch
	05-remove-failing-x86-test.patch
	"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DASSIMP_BUILD_TESTS=True
	cmake --build build
}

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	DESTDIR="$pkgdir" cmake --install build
	rm -vf "$pkgdir"/usr/lib/libIrrXML.a
}

sha512sums="51b704ffea778638b9e228578650f62691c56ee1a90337f8bbbee37e807455466d818234be24852334e5806260e5690932c9bd8e00f055c5c26782e0636538f0  assimp-v5.0.1.tar.gz
535a80c5899a2994735e7b17b4e3fdb3ff2b53e64c09ec8fcab1dbcea2ad696fed50aeb1667a3c4e00a8a3ddf411d33ec1d36fcb256e26f02cf951f0e2c83a73  01-rm-revision-test.patch
19a52d40887de945b74efe0f7e105a02eab306e6295d2d9b32f76bed9596c93ab954118df6e7afdafd2488e0e1feb666c734a8eb56e0edc34510efe3f8f99374  02-fix-ssize-32bit.patch
5e6f50c4ca9e9bd6fc48caf708d7984794d3a00905698049b591b86a7ba74d7ff94f99883bb418484bb5fb75a342ae4fa6fcdb1b0a7d544753a3cf2d86a15273  03-fix-aiGetLegalStringTest.patch
66f52cc5f809eb6987e1c6298730ae6bf89e1d0fb1c7665834448494121f79c1602277ac6eabb69a302171cf1048b54560ade3bc00a8e1adb4fe464bdb71d9de  04-fix-unittests.patch
bfb321b8493b2ef8c35ab0627173d0f1754519e9bae6f6c59cc164aaf91a07d8ae382fbc92550cfab6f52502565390ba22b7478efa5bba008eec0aa075c5e7d1  05-remove-failing-x86-test.patch"