archrelease: copy trunk to extra-x86_64
[arch-packages.git] / poppler-data / trunk / PKGBUILD
blob21f5a5414310502e67966e108b105f2455f7ab8d
1 # Maintainer: Andreas Radke <andyrtr@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
4 pkgname=poppler-data
5 pkgver=0.4.11
6 pkgrel=3
7 _POPPLER_DATA_EXTRA_VERSION="0.4.11-2"
8 pkgdesc="Encoding data for the poppler PDF rendering library"
9 arch=('any')
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')
18 package() {
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 {} . \;
29   popd
31   install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
32   install -m644 COPYING COPYING.adobe \
33     "${pkgdir}/usr/share/licenses/${pkgname}/"