2012-10-27 16:07:34 +02:00
|
|
|
# Description: Utility that does structural, content-preserving transformations on PDF files
|
2021-02-24 11:49:38 +01:00
|
|
|
# URL: http://qpdf.sourceforge.net/
|
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
2023-09-07 11:10:35 +02:00
|
|
|
# Depends on: libjpeg-turbo openssl zlib
|
|
|
|
# Optional: gnutls libidn2
|
2012-10-27 16:07:34 +02:00
|
|
|
|
|
|
|
name=qpdf
|
2024-02-25 10:14:59 +01:00
|
|
|
version=11.9.0
|
2017-09-18 15:23:46 +02:00
|
|
|
release=1
|
|
|
|
source=(http://downloads.sourceforge.net/project/$name/$name/$version/$name-$version.tar.gz)
|
2012-10-27 16:07:34 +02:00
|
|
|
|
|
|
|
build() {
|
2023-02-26 15:32:29 +01:00
|
|
|
cmake -S $name-$version -B build -G Ninja \
|
2022-09-13 14:10:25 +02:00
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=/usr/lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS"
|
2023-09-07 11:10:35 +02:00
|
|
|
|
2022-09-13 14:10:25 +02:00
|
|
|
cmake --build build -j ${JOBS:-1}
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2023-09-07 11:10:35 +02:00
|
|
|
|
2021-02-24 11:49:38 +01:00
|
|
|
rm -r $PKG/usr/share/doc
|
2012-10-27 16:07:34 +02:00
|
|
|
}
|