void-packages/srcpkgs/gmic/template

48 lines
1.2 KiB
Bash

# Template file for 'gmic'
pkgname=gmic
version=1.7.1
revision=2
hostmakedepends="pkg-config gimp"
makedepends="fftw-devel libopenexr-devel MesaLib-devel libopencv-devel
libgomp-devel libpng-devel libjpeg-turbo-devel tiff-devel libcurl-devel
gtk+-devel gimp-devel qt-devel"
short_desc="GREYC's Magic for Image Computing (image processing framework)"
maintainer="Jakub Skrzypnik <jot.skrzyp@gmail.com>"
license="CeCILL"
homepage="http://gmic.eu/"
distfiles="http://gmic.eu/files/source/gmic_${version}.tar.gz"
checksum=27819ac198945a3c1ac0851a583b3946624b96612a00b5145281dbf4108f045f
nopie=yes
do_build() {
sed -i 's|/etc/bash_completion.d|/usr/share/bash-completion/completions|g' src/Makefile
make -C src all
}
do_install() {
make -C src install DESTDIR="${DESTDIR}" USR="/usr"
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
}
}
gmic-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
}
}