diff options
author | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
commit | 7a65a910b77ad191d69881098c47f9b0c852d92e (patch) | |
tree | 9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/python2-poppler/PKGBUILD | |
parent | 60da6abff6c9577a783d72865f11de7a585e912e (diff) |
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/python2-poppler/PKGBUILD')
-rw-r--r-- | community/python2-poppler/PKGBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/community/python2-poppler/PKGBUILD b/community/python2-poppler/PKGBUILD new file mode 100644 index 000000000..45587a5d9 --- /dev/null +++ b/community/python2-poppler/PKGBUILD @@ -0,0 +1,47 @@ +# $Id: PKGBUILD 58362 2011-11-12 10:53:03Z ibiru $ +# Maintainer: Ray Rashif <schiv@archlinux.org +# Contributor: György Balló <ballogy@freestart.hu> + +pkgname=python2-poppler +_realname=pypoppler +pkgver=0.12.1 +pkgrel=7 +pkgdesc="Python 2.x bindings for Poppler" +arch=('i686' 'x86_64') +url="https://launchpad.net/poppler-python" +license=('GPL') +depends=('pygtk' 'poppler-glib' 'glib2' 'freetype2') +provides=('pypoppler' 'python-poppler') +conflicts=('python-poppler') +replaces=('python-poppler') +options=(!libtool) +source=("http://launchpad.net/poppler-python/trunk/development/+download/$_realname-$pkgver.tar.gz" + 'pypoppler-0.12.1-poppler-0.16.0.patch') +md5sums=('1a89e5ed3042afc81bbd4d02e0cf640a' + '683c5b67866d56adc2494120cc329dc8') + +build() { + cd "$srcdir/$_realname-$pkgver" + + # poppler 0.16 compat + patch -Np0 -i \ + "$srcdir/pypoppler-0.12.1-poppler-0.16.0.patch" + + # poppler 0.18 compat + sed -i "/pixbuf/,/^)/d" poppler.defs + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-static \ + PYTHON=python2 + make +} + +package() { + cd "$srcdir/$_realname-$pkgver" + + make DESTDIR="$pkgdir" install +} + +# vim:set ts=2 sw=2 et: |