summarylogtreecommitdiffstats
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
downloadaur-python2-pypdf2-git.tar.gz
initial import
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD36
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..13c663ae7de
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = python2-pypdf2-git
+ pkgdesc = PyPDF2 library for Python2
+ pkgver = 20131004
+ pkgrel = 1
+ url = http://mstamy2.github.com/PyPDF2/
+ arch = i686
+ arch = x86_64
+ license = custom
+ makedepends = git
+ makedepends = python2-distribute
+ depends = python2
+ conflicts = python2-pypdf-git
+
+pkgname = python2-pypdf2-git
+
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"
+}