49 lines
1.1 KiB
Bash
49 lines
1.1 KiB
Bash
# Template file for 'qpdf'
|
|
pkgname=qpdf
|
|
version=11.1.1
|
|
revision=1
|
|
build_style=cmake
|
|
hostmakedepends="perl pkg-config"
|
|
makedepends="zlib-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/refs/tags/v${version}.tar.gz"
|
|
checksum=785edab622a1bc7e25e1537ad2c325005d48c5c7957f7abedff405deb80fa59a
|
|
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
makedepends+=" libatomic-devel"
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
armv6l-musl)
|
|
LIBS="-latomic"
|
|
;;
|
|
*)
|
|
LDFLAGS+=" -latomic"
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
configure_args="-DLL_FMT=%lld -DRANDOM_DEVICE=/dev/urandom"
|
|
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"
|
|
}
|
|
}
|