void-packages/srcpkgs/vigra/template

44 lines
1.2 KiB
Bash

# Template file for 'vigra'
pkgname=vigra
version=1.11.2
revision=1
build_style=cmake
configure_args="-DWITH_OPENEXR=1"
hostmakedepends="python3"
makedepends="libpng-devel tiff-devel libjpeg-turbo-devel zlib-devel fftw-devel
boost-devel libopenexr-devel imath-devel"
short_desc="Image processing and analysis library"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="MIT"
homepage="https://ukoethe.github.io/vigra/"
distfiles="https://github.com/ukoethe/vigra/archive/refs/tags/Version-${version//./-}.tar.gz"
checksum=4841936f5c3c137611ec782e293d961df29d3b5b70ade8cb711374de0f4cb5d3
make_check=no # all tests fail with: [Unknown system error -8] Process not started
python_version=3
post_install() {
vlicense LICENSE.txt
vmkdir usr/share/$pkgname
mv $DESTDIR/usr/doc $DESTDIR/usr/share/$pkgname/doc
}
vigra-doc_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - documentation"
pkg_install() {
vmove usr/share/vigra/doc
}
}
vigra-devel_package() {
# vigra-config is python script
depends="${sourcepkg}>=${version}_${revision} ${makedepends} python3"
short_desc+=" - development files"
pkg_install() {
vmove usr/bin
vmove usr/include
vmove usr/lib/vigra
vmove "usr/lib/*.so"
}
}