void-packages/srcpkgs/tiff/template

41 lines
1.0 KiB
Bash

# Template file for 'tiff'
pkgname=tiff
version=4.5.1
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=d7f38b6788e4a8f5da7940c5ac9424f494d8a79eba53d555f4a507167dca5e2b
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
}
}