upgpkg: ufw 0.36.2-1
[ArchLinux/community.git] / f3d / trunk / PKGBUILD
blobe52b3c2ed5781589c095588051e1b3a9cce4069c
1 # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
2 # Contributor: Michael Migliore <mcmigliore+aur@gmail.com>
3 # Contributor: Mathieu Wespthal <mathieu.westphal+aur@gmail.com>
4 pkgname=f3d
5 pkgver=2.0.0
6 pkgrel=5
7 pkgdesc='A fast and minimalist 3D viewer'
8 arch=('x86_64')
9 url="https://github.com/${pkgname}-app/${pkgname}"
10 license=('BSD')
11 depends=('vtk' 'glew' 'pugixml' 'netcdf' 'ospray' 'assimp' 'opencascade' 'alembic'
12          'fmt' 'nlohmann-json' 'draco')
13 makedepends=('cmake' 'help2man' 'openmp' 'pybind11' 'ninja' 'eigen' 'utf8cpp' 'python' 'jdk-openjdk')
14 source=("$pkgname-$pkgver.tar.gz::https://github.com/$pkgname-app/$pkgname/archive/refs/tags/v$pkgver.tar.gz")
15 sha256sums=('5b335de78a9f68903d7023d947090d4b36fa15b9e165749906a82153e0f56d05')
17 build() {
18   cd "$srcdir/$pkgname-$pkgver"
19   export CXXFLAGS+=" -ffat-lto-objects"
20   cmake \
21     -GNinja \
22     -Bbuild \
23     -DCMAKE_INSTALL_PREFIX=/usr \
24     -DCMAKE_BUILD_TYPE=None \
25     -DF3D_BINDINGS_JAVA=ON \
26     -DF3D_BINDINGS_PYTHON=ON \
27     -DF3D_LINUX_GENERATE_MAN=ON \
28     -DF3D_MODULE_RAYTRACING=ON \
29     -DF3D_MODULE_EXTERNAL_RENDERING=ON \
30     -DF3D_PLUGINS_STATIC_BUILD=ON \
31     -DF3D_PLUGIN_BUILD_ALEMBIC=ON \
32     -DF3D_PLUGIN_BUILD_ASSIMP=ON \
33     -DF3D_PLUGIN_BUILD_DRACO=ON \
34     -DF3D_PLUGIN_BUILD_OCCT=ON
35   ninja -C build
38 package() {
39   cd "$srcdir/$pkgname-$pkgver"
41   DESTDIR="$pkgdir" cmake --install build
42   DESTDIR="$pkgdir" cmake --install build --component mimetypes
43   DESTDIR="$pkgdir" cmake --install build --component sdk
44   DESTDIR="$pkgdir" cmake --install build --component configuration
45   install -Dm644 LICENSE.md "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE.md