archrelease: copy trunk to extra-x86_64
[arch-packages.git] / assimp / trunk / PKGBUILD
blob1111de5c2d0fe4e5ee050fa5c439e8a9c4fe9c1b
1 # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
2 # Contributor: jepaan <jepaan at hotmail dot com>
4 pkgname=assimp
5 pkgver=5.2.5
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 sha512sums=('ac0dc4243f9d1ff077966f0037187b4374075ac97e75e1a3cd6bdc1caf5f8e4d40953d9a8a316480969c09524d87daa9d3ed75e6ac6f037dd5b1c5f25fce3afb')
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     -DASSIMP_WARNINGS_AS_ERRORS=OFF \
26     -DASSIMP_BUILD_ASSIMP_TOOLS=ON
27   ninja -C build
30 package()  {
31   cd ${pkgname}-${pkgver}
33   DESTDIR="$pkgdir" ninja -C build install
34   install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE