void-packages/srcpkgs/qpdf/template
Benjamín Albiñana d37d8ca360 qpdf: update to 10.0.2.
Closes: #25931 [via git-merge-pr]
2020-10-29 13:24:09 +01:00

38 lines
1 KiB
Bash

# Template file for 'qpdf'
pkgname=qpdf
version=10.0.2
revision=1
wrksrc="qpdf-release-qpdf-${version}"
build_style=gnu-configure
hostmakedepends="gettext tar"
makedepends="pcre-devel libjpeg-turbo-devel"
short_desc="Content-Preserving PDF Transformation System"
maintainer="Benjamín Albiñana <benalb@gmail.com>"
license="Apache-2.0"
homepage="https://github.com/qpdf/qpdf"
changelog="https://raw.githubusercontent.com/qpdf/qpdf/master/ChangeLog"
distfiles="${homepage}/archive/release-qpdf-${version}.tar.gz"
checksum=25b0f0342015fa5411ea4547fd243105f92a91b5a9fbde95f430fc6865e942fa
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
LDFLAGS+=" -latomic"
fi
libqpdf_package() {
short_desc+=" - shared library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
libqpdf-devel_package() {
depends="libqpdf>=${version}_${revision} libjpeg-turbo zlib-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}