git » poppler-data.git » commit ad55eeb

FS#76565 - provide cMap symlinks to where ghostscript expects them

author Andreas Radke
2022-11-16 10:51:34 UTC
committer Andreas Radke
2022-11-16 10:51:34 UTC
parent 378e64446655ccf06bdfc231e6799a42c5260615

FS#76565 - provide cMap symlinks to where ghostscript expects them

PKGBUILD +7 -1

diff --git a/PKGBUILD b/PKGBUILD
index e956ea4..21f5a54 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
 
 pkgname=poppler-data
 pkgver=0.4.11
-pkgrel=2
+pkgrel=3
 _POPPLER_DATA_EXTRA_VERSION="0.4.11-2"
 pkgdesc="Encoding data for the poppler PDF rendering library"
 arch=('any')
@@ -17,11 +17,17 @@ sha256sums=('2cec05cd1bb03af98a8b06a1e22f6e6e1a65b1e2f3816cb3069bb0874825f08c'
 
 package() {
   cd ${pkgname}-${pkgver}
+
   make prefix=/usr DESTDIR="${pkgdir}" install
 
   # additional cMaps for ghostscript - FS#76416
   cp ../${pkgname}-${_POPPLER_DATA_EXTRA_VERSION}-extra/Identity-* "${pkgdir}"/usr/share/poppler/cMap
 
+  # add symlinks to cMaps - FS#76565
+  pushd "${pkgdir}"/usr/share/poppler/cMap
+    find ../cMap -type f -exec ln -s {} . \;
+  popd
+
   install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
   install -m644 COPYING COPYING.adobe \
     "${pkgdir}/usr/share/licenses/${pkgname}/"