updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / python-pypdf-git / PKGBUILD
blobb188baf5464bf3e81a5670b76809f86f2b2404d3
1 # Maintainer: Tim Hartman <tbhartman@gmail.com>
3 pkgname=python-pypdf-git
4 pkgver=20111221
5 pkgrel=1
6 pkgdesc="A Pure-Python library built as a PDF toolkit"
7 arch=('any')
8 url="http://pybrary.net/pyPdf"
9 license=('BSD')
10 depends=('python')
11 #conflicts=('pypdf')
12 #provides=('pypdf')
13 #source=(http://pybrary.net/pyPdf/pyPdf-$pkgver.tar.gz 
14 #       license.txt)
15 #md5sums=('7a75ef56f227b78ae62d6e38d4b6b1da'
16 #         '19b1b4bc0a9a8c4b7b2f5689a16cec2c')
18 _gitroot="git://github.com/mfenniak/pyPdf.git"
19 _gitname="pyPdf"
21 build() {
22     cd ${srcdir}
24     msg "Connecting to GIT server...."
25    
26     if [ -d .git ]; then
27       git pull
28     else
29       git clone $_gitroot .
30       git checkout -t origin/py3
31     fi
32   
33     msg "GIT checkout done or server timeout"
34     msg "Starting build..."
35     
36     python setup.py install --root=${pkgdir}
37     install -D -m644 ${srcdir}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE