void-packages/srcpkgs/tiff/template

41 lines
1.0 KiB
Bash

# Template file for 'tiff'
pkgname=tiff
version=4.6.0
revision=1
build_style=gnu-configure
configure_args="--enable-cxx --without-x"
makedepends="jbigkit-devel libjpeg-turbo-devel
liblzma-devel libzstd-devel zlib-devel"
short_desc="Library and tools for reading and writing TIFF data files"
maintainer="skmpz <dem.procopiou@gmail.com>"
license="libtiff"
homepage="http://www.simplesystems.org/libtiff/"
distfiles="https://download.osgeo.org/libtiff/tiff-${version}.tar.gz"
checksum=88b3979e6d5c7e32b50d7ec72fb15af724f6ab2cbf7e10880c360a77e4b5d99a
if [ "$XBPS_CHECK_PKGS" ]; then
configure_args+=" --enable-tests"
else
configure_args+=" --disable-tests"
fi
post_install() {
for f in ${DESTDIR}/usr/share/man/man3/*.3tiff; do
mv ${f} ${f%tiff}
done
vlicense LICENSE.md
}
tiff-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"
vmove usr/share/man/man3
vmove usr/share/doc
}
}