summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDaniel R. van Rossum2015-06-18 16:27:37 -0500
committerDaniel R. van Rossum2015-06-18 16:27:37 -0500
commit8407575d768827e81cdc97592225ebb32b35221e (patch)
tree91a333a5cdf4b24e1024b2264e13b93a51f5ed54 /PKGBUILD
downloadaur-python2-pypdf2-git.tar.gz
initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ab9712aa460
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+#Maintainer: Daan van Rossum <d.r.vanrossum @ gmx.de>
+#Contributor: Jan Oliver Oelerich <janoliver@oelerich.org>
+pkgname=python2-pypdf2-git
+pkgver=20131004
+pkgrel=1
+pkgdesc="PyPDF2 library for Python2"
+arch=('i686' 'x86_64')
+url="http://mstamy2.github.com/PyPDF2/"
+license=('custom')
+depends=('python2')
+conflicts=('python2-pypdf-git')
+makedepends=('git' 'python2-distribute')
+
+_gitroot="https://github.com/mstamy2/PyPDF2.git"
+_gitname="PyPDF2"
+
+build() {
+ cd "$srcdir"
+ msg "Connecting to GIT server...."
+
+ if [ -d $_gitname ] ; then
+ cd $_gitname && git pull origin
+ msg "The local files are updated."
+ else
+ git clone $_gitroot
+ cd $_gitname
+ fi
+
+ msg "GIT checkout done or server timeout"
+}
+
+package() {
+ cd "$srcdir/$_gitname"
+ python2 setup.py install --prefix=/usr --root="$pkgdir"
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}