blob: 4542c0de735b0d7952fe92f0e81e78d429723b2a (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Maintainer:
pkgname=poppler
pkgver=0.69.0
pkgrel=0
pkgdesc="PDF rendering library based on xpdf 3.0"
url="https://poppler.freedesktop.org/"
arch="all"
options="!check" # Test data is available in Git only.
license="GPL-2.0+"
depends=""
depends_dev="cairo-dev glib-dev"
makedepends="$depends_dev libjpeg-turbo-dev cairo-dev libxml2-dev openjpeg-dev
fontconfig-dev gobject-introspection-dev lcms2-dev libpng-dev tiff-dev
zlib-dev cmake"
subpackages="$pkgname-dev $pkgname-doc $pkgname-utils $pkgname-glib"
source="https://poppler.freedesktop.org/poppler-$pkgver.tar.xz"
builddir="$srcdir"/$pkgname-$pkgver/build
prepare() {
default_prepare
mkdir "$builddir"
}
build() {
cd "$builddir"
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DENABLE_XPDF_HEADERS:bool=ON \
..
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
utils() {
pkgdesc="Poppler's xpdf-workalike command line utilities"
install -d "$subpkgdir"/usr
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}
glib() {
pkgdesc="Glib wrapper for poppler"
replaces="poppler-gtk"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libpoppler-glib.so.* \
"$pkgdir"/usr/lib/girepository* \
"$subpkgdir"/usr/lib/
}
_cpp() {
pkgdesc="Pure C++ wrapper for poppler"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libpoppler-cpp.so.* \
"$subpkgdir"/usr/lib/
}
sha512sums="9c0382059c786e17b16dc0847212006a7c05e51b3963a7470e49cede87c7855bdfa1b80b2d884e4fb4a430cdd5ab666391ecf53230486e245b6f28af03890e1d poppler-0.69.0.tar.xz"
|