From b0268692a9c7b9f0921e142250354e88020698f8 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 15 Jul 2018 02:29:53 -0500 Subject: user/poppler-qt5: bump to 0.66.0, modernise, use CMake --- user/poppler-qt5/APKBUILD | 47 ++++++++++++++++++++--------------------------- 1 file changed, 20 insertions(+), 27 deletions(-) (limited to 'user') diff --git a/user/poppler-qt5/APKBUILD b/user/poppler-qt5/APKBUILD index 871d112a4..701481f1c 100644 --- a/user/poppler-qt5/APKBUILD +++ b/user/poppler-qt5/APKBUILD @@ -1,48 +1,41 @@ -# Maintainer: Natanael Copa - +# Maintainer: A. Wilcox pkgname=poppler-qt5 _realname=poppler -pkgver=0.56.0 +pkgver=0.66.0 pkgrel=0 pkgdesc="PDF rendering library based on xpdf 3.0 (Qt 5 bindings)" -url="http://poppler.freedesktop.org/" +url="https://poppler.freedesktop.org/" arch="all" -license="GPL" options="!check" # Test data not included in tarball -subpackages="$pkgname-dev" +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= -replaces="poppler-glib" +depends="" depends_dev="$makedepends" -source="http://poppler.freedesktop.org/poppler-$pkgver.tar.xz" +subpackages="$pkgname-dev" +source="https://poppler.freedesktop.org/poppler-$pkgver.tar.xz" +builddir="$srcdir"/$_realname-$pkgver -builddir="$srcdir/$_realname-$pkgver" +prepare() { + cd "$builddir" + mkdir -p build +} build() { - cd "$builddir" - ./configure \ - --build=$CBUILD \ - --host=$CHOST \ - --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --disable-static \ - --disable-poppler-glib \ - --enable-cairo-output \ - --enable-xpdf-headers \ - --enable-libjpeg \ - --enable-zlib \ - --enable-poppler-qt5 \ - --disable-utils + cd "$builddir"/build + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib \ + .. make } package() { - cd "$builddir" + cd "$builddir"/build install -D -m644 poppler-qt5.pc "$pkgdir"/usr/lib/pkgconfig/poppler-qt5.pc cd qt5 make DESTDIR="$pkgdir" install } -sha512sums="74d2ca63afcb7e155c153b4ddc71621b7f4f2c60d4fcafd873176d5ac59fafedc35b200a22c7af2013d7f75e670a1cc23d6ba878167a02209917f8d30002d528 poppler-0.56.0.tar.xz" +sha512sums="cf0ce3855d7cc28021685731308bfdeca0a7a764345432242887852d67fb4119b149ab7ba692e7031e2f0e79b9982e71446efbd75bb7886450d13ea6c5035b51 poppler-0.66.0.tar.xz" -- cgit v1.2.3-70-g09d2