summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD17
2 files changed, 10 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a97cc3c..1f8ec75 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,14 @@
-# Generated by mksrcinfo v8
-# Sat Oct 29 19:45:30 UTC 2016
pkgbase = stapler-git
pkgdesc = Manipulate PDF documents from the command line
- pkgver = 0.3.2.r16.g7c153e6
+ pkgver = 0.3.2.r34.gee85df8
pkgrel = 1
url = http://github.com/hellerbarde/stapler
arch = any
license = BSD
makedepends = git
- depends = python2-pypdf2
- depends = python2-setuptools
- depends = python2-more-itertools
+ depends = python-pypdf2
+ depends = python-setuptools
+ depends = python-more-itertools
source = git+https://github.com/hellerbarde/stapler.git
md5sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index 446a7ec..2aa278e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,13 +2,13 @@
# Maintainer: Steven Allen <steven@stebalien.com>
pkgname=stapler-git
-pkgver=0.3.2.r16.g7c153e6
+pkgver=0.3.2.r34.gee85df8
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' 'python2-more-itertools')
+depends=('python-pypdf2' 'python-setuptools' 'python-more-itertools')
makedepends=('git')
source=('git+https://github.com/hellerbarde/stapler.git')
md5sums=('SKIP')
@@ -19,21 +19,16 @@ pkgver() {
git describe --tags --always | sed -e 's/\([^-]*-g\)/r\1/;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
-}
-
check() {
cd "$srcdir/$_gitname"
- python2 setup.py test
+ python setup.py test
}
package() {
cd "$srcdir/$_gitname"
- python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+ python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+ rm -rf "$pkgdir/usr/bin" # The setup.py scripts are broken
+ install -Dm755 "stapler" "$pkgdir/usr/bin/stapler"
install -Dm644 LICENSE $pkgdir/usr/share/licenses/stapler-git/LICENSE
install -Dm644 README.rst $pkgdir/usr/share/doc/stapler-git/README