pkgname=qpdf pkgver=11.9.1 pkgrel=1 pkgdesc="QPDF: A Content-Preserving PDF Transformation System" arch=('x86_64') url="https://github.com/qpdf/qpdf" license=('Apache-2.0' 'Artistic-2.0') depends=('gcc-libs' 'glibc' 'gnutls' 'libjpeg-turbo' 'openssl' 'zlib') makedepends=('cmake') source=(https://github.com/qpdf/qpdf/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz) sha256sums=(2ba4d248f9567a27c146b9772ef5dc93bd9622317978455ffe91b259340d13d1) build() { cd ${pkgname}-${pkgver} local cmake_args=( -B flarebird-build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib64 -DBUILD_STATIC_LIBS=OFF -DREQUIRE_CRYPTO_GNUTLS=ON -DREQUIRE_CRYPTO_OPENSSL=OFF -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${pkgname}-${pkgver} ) cmake ${cmake_args[@]} cmake --build flarebird-build } package() { cd ${pkgname}-${pkgver} DESTDIR=${pkgdir} cmake --install flarebird-build }