# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=poppler-data
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.4.10
pkgrel=1
pkgdesc="Encoding data for the poppler PDF rendering library"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
license=('custom' 'GPL2')
url="https://poppler.freedesktop.org/"
source=(https://poppler.freedesktop.org/${_realname}-${pkgver}.tar.gz)
sha256sums=('6e2fcef66ec8c44625f94292ccf8af9f1d918b410d5aa69c274ce67387967b30')

package() {
  cd "${srcdir}/${_realname}-${pkgver}"
  make prefix=${MINGW_PREFIX} DESTDIR="${pkgdir}" install

  install -m755 -d "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}"
  install -m644 COPYING COPYING.adobe \
    "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/"
}
