blob: 86bb1481c4fb9ba94289a0506d2c31776c13cc30 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=poppler-qt5
_realname=poppler
pkgver=0.73.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() {
cd "$builddir"
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="6924a343032573504a0039c56a6263cd1183fa6aca75966fe1f084bd19da78553e455e541a3693896c1ed0c3865f11c11758a0f5a66b2f6cd48ac8a7eccf891a poppler-0.73.0.tar.xz"
|