PKGBUILD 736 Bytes
Newer Older
Jan Mette's avatar
Jan Mette committed
1
pkgname=poppler-data
AlmAck's avatar
AlmAck committed
2
pkgver=0.4.8
3
pkgrel=2
Jan Mette's avatar
Jan Mette committed
4 5
pkgdesc="Encoding data for the poppler PDF rendering library"
arch=(any)
6
makedepends=(cmake)
Jan Mette's avatar
Jan Mette committed
7 8 9 10
license=('custom' 'GPL2')
conflicts=('poppler<0.10.5')
url="http://poppler.freedesktop.org/"
source=(http://poppler.freedesktop.org/${pkgname}-${pkgver}.tar.gz)
AlmAck's avatar
AlmAck committed
11
md5sums=('00f8989c804de84af0ba2ea629949980')
Jan Mette's avatar
Jan Mette committed
12

13 14 15 16
prepare() {
  mkdir -p $srcdir/build
}

17
build() {
18 19
  cd $srcdir/build
  cmake -DCMAKE_INSTALL_PREFIX=/usr ../${pkgname}-${pkgver}  
20 21
}

Jeff Huang's avatar
Jeff Huang committed
22
package() {
23
  cd "${srcdir}/build"
24
  make DESTDIR="${pkgdir}" install
Jan Mette's avatar
Jan Mette committed
25

26
  cd "${srcdir}/${pkgname}-${pkgver}"
Jan Mette's avatar
Jan Mette committed
27 28
  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING COPYING.adobe \
philm's avatar
philm committed
29
    "${pkgdir}/usr/share/licenses/${pkgname}/"
Jan Mette's avatar
Jan Mette committed
30
}