1 # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
2 # Contributor: jepaan <jepaan at hotmail dot com>
7 pkgdesc="Library to import various well-known 3D model formats in an uniform manner"
10 depends=('zlib' 'gcc-libs')
11 makedepends=('cmake' 'ninja')
12 url='https://github.com/assimp/assimp'
13 source=("$pkgname-$pkgver.tar.gz::https://github.com/assimp/assimp/archive/v${pkgver}.tar.gz"
14 https://github.com/gentoo/gentoo/raw/master/media-libs/assimp/files/assimp-5.2.2-fix-usage-of-incompatible-minizip-data-structure.patch)
15 sha512sums=('ee988b1806b46c78f97bb5b25237a3f56a7028ed37898fb9b243e379e29e8bfd29e4dffc616566941ed9bdcf502bd30568904ad2ef2ef7d0f63b40daefdc66bf'
16 '2103864934bd4a3469b419536da4604839b3b1a1b412612dd5a631f578d7c54538e7c97ca612e28425e5f1dd0ce71c11117165f1cbcb5f3604113ae4be259734')
19 cd ${pkgname}-${pkgver}
20 patch -Np1 -i ../assimp-5.2.2-fix-usage-of-incompatible-minizip-data-structure.patch # https://github.com/assimp/assimp/issues/4334
24 cd ${pkgname}-${pkgver}
29 -DCMAKE_INSTALL_PREFIX=/usr \
30 -DCMAKE_BUILD_TYPE=Release \
31 -DASSIMP_BUILD_SAMPLES=OFF \
32 -DASSIMP_WARNINGS_AS_ERRORS=OFF
37 cd ${pkgname}-${pkgver}
39 DESTDIR="$pkgdir" ninja -C build install
40 install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE