summaryrefslogblamecommitdiff
path: root/user/assimp/APKBUILD
blob: da9d6cca182ac300db5ca4d9d2aed8b2b95828dd (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12


                                          
            







                                                                        
                                                                                
                                        



















                                                       
                                                                                                                                                                  
                                                                                                                                                                   
# Contributor: Russ Webber <russ@rw.id.au>
# Maintainer: Zach van Rijn <me@zv.io>
pkgname=assimp
pkgver=5.4.1
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/v$pkgver/assimp-v$pkgver.tar.gz
	05-remove-failing-x86-test.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="980db331ca39950359db116d36968b87f5fea4b470be52960dd983e2ec232e019cae754819182b63a095a13b1d98364d64bd02ac29db1ea4f627d095a03da742  assimp-v5.4.1.tar.gz
bfb321b8493b2ef8c35ab0627173d0f1754519e9bae6f6c59cc164aaf91a07d8ae382fbc92550cfab6f52502565390ba22b7478efa5bba008eec0aa075c5e7d1  05-remove-failing-x86-test.patch"