blob: 9177e1c62b1a986bcf8c1e94bd55e681b409ee24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
pkgname=vtk-git
pkgver=8.2.0.3046.g5345571164
pkgrel=1
pkgdesc='A software system for 3D computer graphics, image processing, and visualization'
arch=('i686' 'x86_64')
url='http://www.vtk.org'
license=('BSD')
depends=('jsoncpp' 'libxt' 'double-conversion' 'glew' 'hdf5' 'python' 'proj' 'pugixml' 'gl2ps')
makedepends=('git' 'cmake' 'doxygen' 'boost' 'java-environment' 'utf8cpp' 'eigen' 'pegtl')
provides=("vtk")
conflicts=("vtk")
source=("git+https://gitlab.kitware.com/vtk/vtk.git")
sha256sums=("SKIP")
pkgver() {
cd "${srcdir}/vtk"
git describe | sed 's:^v::;s:-:.:g'
}
prepare() {
cd "${srcdir}/vtk"
}
build() {
cd "${srcdir}/vtk"
export JAVA_HOME=/usr/lib/jvm/default
mkdir -p build && cd build
cmake $srcdir/$_pkgname \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTING=OFF \
-DVTK_LEGACY_REMOVE=ON \
-DVTK_USE_LARGE_DATA=ON \
-DVTK_USE_EXTERNAL=ON \
-DVTK_MODULE_USE_EXTERNAL_VTK_libharu=OFF \
-DVTK_BUILD_TESTING=OFF \
-DVTK_PYTHON_VERSION="3" \
-DVTK_WRAP_JAVA=ON \
-DVTK_WRAP_PYTHON=ON \
-DVTK_MODULE_ENABLE_VTK_IOADIOS2=NO \
..
make
}
package() {
cd "${srcdir}/vtk/build"
make DESTDIR="$pkgdir" install
# Pack license
install -D -m644 $srcdir/vtk/Copyright.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
|