APKBUILD 1.08 KB
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=poppler-qt5
_realname=poppler
pkgver=0.74.0
pkgrel=0
pkgdesc="PDF rendering library based on xpdf 3.0 (Qt 5 bindings)"
url="https://poppler.freedesktop.org/"
arch="all"
options="!check"  # Test data not included in tarball
license="GPL-2.0+"
makedepends="libjpeg-turbo-dev cairo-dev libxml2-dev fontconfig-dev
	qt5-qtbase-dev poppler-dev~$pkgver lcms2-dev openjpeg-dev"
depends=""
depends_dev="$makedepends"
subpackages="$pkgname-dev"
source="https://poppler.freedesktop.org/poppler-$pkgver.tar.xz"
builddir="$srcdir"/$_realname-$pkgver

prepare() {
	mkdir -p build
}

build() {
	cd "$builddir"/build
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_LIBDIR=/usr/lib \
		..
	make
}

package() {
	cd "$builddir"/build
	install -D -m644 poppler-qt5.pc "$pkgdir"/usr/lib/pkgconfig/poppler-qt5.pc
	cd qt5
	make DESTDIR="$pkgdir" install
}

sha512sums="4e48e2ffb559863ee693930db3b8594fd7e60e4b4ca3cdeb198faf90a6f4dbb5e102461492a12058221bc1218fe7e17c9085afb9e7956ae4bf26c11674315e66  poppler-0.74.0.tar.xz"