void-packages/srcpkgs/vips/template
2020-12-22 16:54:22 -03:00

76 lines
1.6 KiB
Bash

# Template file for 'vips'
pkgname=vips
version=8.10.5
revision=1
build_style=gnu-configure
build_helper=gir
configure_args="--enable-introspection=$(vopt_if gir yes no)"
hostmakedepends="pkgconf"
makedepends="
$(vopt_if hdf5 hdf5-devel)
$(vopt_if hdf5 matio-devel)
cfitsio-devel
expat-devel
fftw-devel
giflib-devel
glib-devel
lcms2-devel
libexif-devel
libgsf-devel
libheif-devel
libimagequant-devel
libjpeg-turbo-devel
libopenexr-devel
libpng-devel
librsvg-devel
libwebp-devel
orc-devel
poppler-glib-devel
tiff-devel
"
short_desc="Fast image processing with low memory needs"
maintainer="Isaac Freund <ifreund@ifreund.xyz>"
license="LGPL-2.1-or-later"
homepage="https://libvips.github.io/libvips/"
distfiles="https://github.com/libvips/libvips/releases/download/v${version}/vips-${version}.tar.gz"
checksum=a4eef2f5334ab6dbf133cd3c6d6394d5bdb3e76d5ea4d578b02e1bc3d9e1cfd8
python_version=3
build_options="gir hdf5"
build_options_default="gir"
desc_option_hdf5="HDF5 support"
if [ -z "$CROSS_BUILD" ]; then
build_options_default+=" hdf5"
fi
libvips_package() {
short_desc+=" - library"
pkg_install() {
vmove "usr/lib/*.so.*"
if [ "$build_option_gir" ]; then
vmove usr/lib/girepository-1.0
fi
}
}
libvips-devel_package() {
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}
libvips-doc_package() {
short_desc+=" - documentation"
pkg_install() {
vmove usr/share/gtk-doc
}
}