void-packages/srcpkgs/gmic/template

62 lines
1.7 KiB
Bash

# Template file for 'gmic'
pkgname=gmic
version=3.1.6
revision=5
_zart_hash=34ebf6cce0bafb98abe57cec83c4a02cd1abeca0
create_wrksrc=yes
build_wrksrc="src"
build_style=gnu-makefile
build_helper=qmake
make_build_args="NOSTRIP=yes"
make_use_env=yes
hostmakedepends="pkg-config gimp qt5-host-tools qt5-qmake"
makedepends="fftw-devel imath-devel libopenexr-devel MesaLib-devel libopencv-devel
libgomp-devel lcms2-devel libpng-devel libjpeg-turbo-devel tiff-devel libcurl-devel
gtk+-devel gimp-devel qt5-devel"
short_desc="GREYC's Magic for Image Computing (image processing framework)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="CECILL-2.1, CECILL-C"
homepage="https://gmic.eu/"
distfiles="https://gmic.eu/files/source/gmic_${version}.tar.gz
https://github.com/c-koi/zart/archive/${_zart_hash}.tar.gz"
checksum="e73d63ba6520637c782b6e5e6805037a27b6255c011c9e2a60a56f9c28822ce4
257baa7e8b32ccfac0841c61ec317ad3ad1c2bfe2d44474b2ca879dc33f755f8"
disable_parallel_build="yes"
post_extract() {
mv gmic-${version}/* .
mv zart-${_zart_hash} zart
}
post_install() {
vlicense ../COPYING
}
gmic-gimp_package() {
short_desc+=" - GIMP plugin"
depends="gimp ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/lib/gimp
}
}
gmic-zart_package() {
short_desc+=" - ZArt tool"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/bin/zart
vmove usr/share/applications/zart.desktop
vmove usr/share/icons/hicolor/48x48/apps/zart.png
vmove usr/share/icons/hicolor/scalable/apps/zart.svg
}
}
gmic-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
}
}