summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSteven Allen <steven@stebalien.com>2015-06-09 12:02:05 -0400
committerSteven Allen <steven@stebalien.com>2015-06-09 12:02:05 -0400
commita2f64e51e61376e485c6b0ac6662324b445fc6c8 (patch)
tree43bb7e7bdc269854967bacf232f1e1a1b3ada90f
Initial Commit
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD41
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 0000000..2ffaa64
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = stapler-git
+ pkgdesc = Manipulate PDF documents from the command line
+ pkgver = 0.2b.39.g8b5f409
+ pkgrel = 1
+ url = http://github.com/hellerbarde/stapler
+ arch = any
+ license = BSD
+ makedepends = git
+ depends = python2-pypdf2
+ depends = python2-setuptools
+ source = git+https://github.com/hellerbarde/stapler.git
+ md5sums = SKIP
+
+pkgname = stapler-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..4e37721
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
+# Maintainer: Steven Allen <steven@stebalien.com>
+
+pkgname=stapler-git
+pkgver=0.2b.39.g8b5f409
+pkgrel=1
+pkgdesc="Manipulate PDF documents from the command line"
+url="http://github.com/hellerbarde/stapler"
+arch=('any')
+license=('BSD')
+depends=('python2-pypdf2' 'python2-setuptools')
+makedepends=('git')
+source=('git+https://github.com/hellerbarde/stapler.git')
+md5sums=('SKIP')
+_gitname="stapler"
+
+pkgver() {
+ cd "$srcdir/$_gitname"
+ git describe --always | sed 's|-|.|g'
+}
+
+prepare() {
+ cd "$srcdir/$_gitname"
+ sed -i '1s+python+python2+' stapler
+ sed -i '1s+python+python2+' staplelib/tests.py
+ sed -i '1s+python+python2+' staplelib/stapler.py
+ sed -i 's/pypdf == 1.12/pypdf >= 1.12/' setup.py
+}
+
+check() {
+ cd "$srcdir/$_gitname"
+ python2 setup.py test
+}
+
+package() {
+ cd "$srcdir/$_gitname"
+ python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+
+ install -Dm644 LICENSE $pkgdir/usr/share/licenses/stapler-git/LICENSE
+ install -Dm644 README.md $pkgdir/usr/share/doc/stapler-git/README
+}