updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / python-poppler-bzr / PKGBUILD
bloba5b5750579b7b3bef7b156fd50bbc40b5fbad282
1 # Contributor: Cilyan Olowen <gaknar@gmail.com>
2 pkgname=python-poppler-bzr
3 pkgver=79
4 pkgrel=2
5 pkgdesc="Python bindings for Poppler"
6 url="https://launchpad.net/poppler-python"
7 license=('GPL')
8 arch=(i686 x86_64)
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')
15 source=()
16 md5sums=()
18 options=(!libtool)
20 _bzrtrunk='lp:~poppler-python/poppler-python/trunk'
21 _bzrmod='poppler-python'
23 build() {
24   cd ${srcdir}
25   
26   msg "Checking out code..."
27   if [ -d ${_bzrmod} ] ; then
28     cd ${_bzrmod}
29     bzr update
30     msg "Code up-to-date."
31   else
32     bzr branch $_bzrtrunk $_bzrmod -r $pkgver || return 1
33     msg "Checkout done."
34   fi
35   
36   cd ${srcdir}
37   rm -rf ${_bzrmod}-build
38   cp -R ${_bzrmod} ${_bzrmod}-build || return 1
39   
40   msg "Starting make..."
41   cd ${srcdir}/${_bzrmod}-build
42   ./autogen.sh --prefix=/usr\
43                --sysconfdir=/etc \
44                --localstatedir=/var || return 1
45   make || return 1
46   make install DESTDIR=${pkgdir} || return 1
48 # vim:syntax=sh