46 lines
1.3 KiB
Bash
46 lines
1.3 KiB
Bash
# Template file for 'qpdf'
|
|
pkgname=qpdf
|
|
version=10.6.2
|
|
revision=1
|
|
wrksrc="qpdf-release-qpdf-${version}"
|
|
build_style=gnu-configure
|
|
hostmakedepends="perl 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/stable/manual/release-notes.rst"
|
|
distfiles="${homepage}/archive/release-qpdf-${version}.tar.gz"
|
|
checksum=e8f8f7f09fe3b9d1f98907e4a0cb7fddb4f0f9b8084e7e3201a571334e686c8c
|
|
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
makedepends+=" libatomic-devel"
|
|
LDFLAGS+=" -latomic"
|
|
fi
|
|
|
|
do_check() {
|
|
# libtsdc++ throws an exception on musl if std::locale("") is used, since
|
|
# its generic locale implementation only supports the C locale.
|
|
# by forcing LANG=C, no exception is thrown and the test suite can run to completion
|
|
LANG=C make check
|
|
}
|
|
|
|
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"
|
|
}
|
|
}
|