archrelease: copy trunk to extra-x86_64
[arch-packages.git] / assimp / repos / extra-x86_64 / PKGBUILD
blob4d08fcc1c212e33bcba1d08f4087fe92c75102de
1 # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
2 # Contributor: jepaan <jepaan at hotmail dot com>
4 pkgname=assimp
5 pkgver=5.2.4
6 pkgrel=2
7 pkgdesc="Library to import various well-known 3D model formats in an uniform manner"
8 arch=('x86_64')
9 license=('BSD')
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')
18 prepare() {
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
23 build() {
24   cd ${pkgname}-${pkgver}
26   cmake \
27     -Bbuild \
28     -GNinja \
29     -DCMAKE_INSTALL_PREFIX=/usr \
30     -DCMAKE_BUILD_TYPE=Release \
31     -DASSIMP_BUILD_SAMPLES=OFF \
32     -DASSIMP_WARNINGS_AS_ERRORS=OFF
33   ninja -C build
36 package()  {
37   cd ${pkgname}-${pkgver}
39   DESTDIR="$pkgdir" ninja -C build install
40   install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE