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>
7 pkgdesc='A fast and minimalist 3D viewer'
9 url="https://github.com/${pkgname}-app/${pkgname}"
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')
18 cd "$srcdir/$pkgname-$pkgver"
19 export CXXFLAGS+=" -ffat-lto-objects"
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
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