archrelease: copy trunk to extra-x86_64
[arch-packages.git] / assimp / repos / extra-x86_64 / PKGBUILD
blob2b49c56ec4117dc490d2d78dce587bd0b78cbfde
1 # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
2 # Contributor: jepaan <jepaan at hotmail dot com>
4 pkgname=assimp
5 pkgver=5.1.2
6 pkgrel=1
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://assimp.org/'
13 source=("$pkgname-$pkgver.tar.gz::https://github.com/assimp/assimp/archive/v${pkgver}.tar.gz")
14 sha512sums=('414c2c4581a9c4e09b7aefed377c49e62b11d2de7a7dc976245fb2fb91c81012a8611d16f6bebb8315215b4be42d2a3f8817ab6e369ddd505e0ebf2ba3cb3f10')
16 build() {
17     cd ${pkgname}-${pkgver}
19     cmake \
20         -Bbuild \
21         -GNinja \
22         -DCMAKE_INSTALL_PREFIX=/usr \
23         -DCMAKE_BUILD_TYPE=Release \
24         -DASSIMP_BUILD_SAMPLES=OFF
25     ninja -C build
28 package()  {
29     cd ${pkgname}-${pkgver}
31     DESTDIR="$pkgdir" ninja -C build install
32     install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE