1 # Maintainer: Andreas Radke <andyrtr@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
7 _POPPLER_DATA_EXTRA_VERSION="0.4.11-2"
8 pkgdesc="Encoding data for the poppler PDF rendering library"
10 license=('custom' 'GPL2')
11 conflicts=('poppler<0.10.5')
12 url="https://poppler.freedesktop.org/"
13 source=(https://poppler.freedesktop.org/${pkgname}-${pkgver}.tar.gz
14 https://dev.gentoo.org/~sam/distfiles/app-text/${pkgname}/${pkgname}-$_POPPLER_DATA_EXTRA_VERSION-extra.tar.xz)
15 sha256sums=('2cec05cd1bb03af98a8b06a1e22f6e6e1a65b1e2f3816cb3069bb0874825f08c'
16 '2f62dc1d20e1646e9c92e6fc35ba26f7d12b7cacee3577e5fd4a85511bfc6603')
19 cd ${pkgname}-${pkgver}
21 make prefix=/usr DESTDIR="${pkgdir}" install
23 # additional cMaps for ghostscript - FS#76416
24 cp ../${pkgname}-${_POPPLER_DATA_EXTRA_VERSION}-extra/Identity-* "${pkgdir}"/usr/share/poppler/cMap
26 # add symlinks to cMaps - FS#76565
27 pushd "${pkgdir}"/usr/share/poppler/cMap
28 find ../cMap -type f -exec ln -s {} . \;
31 install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
32 install -m644 COPYING COPYING.adobe \
33 "${pkgdir}/usr/share/licenses/${pkgname}/"