1 # Contributor: Cilyan Olowen <gaknar@gmail.com>
2 pkgname=python-poppler-bzr
5 pkgdesc="Python bindings for Poppler"
6 url="https://launchpad.net/poppler-python"
10 depends=('pygtk>=2.10.0' 'poppler-glib>=0.10')
11 makedepends=('bzr>=0.15' 'gnome-common')
12 conflicts=('poppler-python')
13 provides=('poppler-python=$pkgver')
20 _bzrtrunk='lp:~poppler-python/poppler-python/trunk'
21 _bzrmod='poppler-python'
26 msg "Checking out code..."
27 if [ -d ${_bzrmod} ] ; then
30 msg "Code up-to-date."
32 bzr branch $_bzrtrunk $_bzrmod -r $pkgver || return 1
37 rm -rf ${_bzrmod}-build
38 cp -R ${_bzrmod} ${_bzrmod}-build || return 1
40 msg "Starting make..."
41 cd ${srcdir}/${_bzrmod}-build
42 ./autogen.sh --prefix=/usr\
44 --localstatedir=/var || return 1
46 make install DESTDIR=${pkgdir} || return 1