pmaports/kde/poppler-qt5/APKBUILD
Oliver Smith c1ae46e4ff Package Plasma Mobile (All credit to PureTryOut!) (#284)
Plasma mobile compiles, but we didn't get it to run yet.
Thanks to PureTryOut for all this amazing porting work! \o/
2017-08-03 20:14:04 +00:00

45 lines
1.3 KiB
Text

pkgname=poppler-qt5
pkgdesc="Poppler Qt5 bindings"
pkgver=0.56.0
pkgrel=1
arch="all"
license="GPL"
depends="poppler"
makedepends="libjpeg-turbo-dev cairo-dev libxml2-dev
fontconfig-dev lcms2-dev gobject-introspection-dev
openjpeg-dev qt5-qtbase-dev poppler-dev cairo-dev glib-dev"
url="https://poppler.freedesktop.org/"
source="https://poppler.freedesktop.org/poppler-${pkgver}.tar.xz"
build() {
cd "${pkgname/-qt5/}-${pkgver}"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static \
--enable-cairo-output \
--enable-xpdf-headers \
--enable-libjpeg \
--enable-zlib \
--enable-poppler-glib \
--disable-poppler-qt4 \
--enable-poppler-qt5 \
|| return 1
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool
make
}
package() {
cd "$srcdir/${pkgname/-qt5/}-${pkgver}"
make -C poppler DESTDIR="${pkgdir}" install-libLTLIBRARIES
make -C qt5 DESTDIR="${pkgdir}" install
install -m755 -d "${pkgdir}/usr/lib/pkgconfig"
install -m644 poppler-qt5.pc "${pkgdir}/usr/lib/pkgconfig/"
rm -f "${pkgdir}"/usr/lib/libpoppler.*
}
sha512sums="74d2ca63afcb7e155c153b4ddc71621b7f4f2c60d4fcafd873176d5ac59fafedc35b200a22c7af2013d7f75e670a1cc23d6ba878167a02209917f8d30002d528 poppler-0.56.0.tar.xz"