summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD19
1 files changed, 8 insertions, 11 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 2aa278ed2f6..0951ef4d609 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,14 +2,14 @@
# Maintainer: Steven Allen <steven@stebalien.com>
pkgname=stapler-git
-pkgver=0.3.2.r34.gee85df8
+pkgver=1.0.0
pkgrel=1
pkgdesc="Manipulate PDF documents from the command line"
url="http://github.com/hellerbarde/stapler"
arch=('any')
license=('BSD')
-depends=('python-pypdf2' 'python-setuptools' 'python-more-itertools')
-makedepends=('git')
+depends=('python-pypdf2' 'python-more-itertools')
+makedepends=('git' 'python-pip')
source=('git+https://github.com/hellerbarde/stapler.git')
md5sums=('SKIP')
_gitname="stapler"
@@ -19,16 +19,13 @@ pkgver() {
git describe --tags --always | sed -e 's/\([^-]*-g\)/r\1/;s/-/./g'
}
-check() {
- cd "$srcdir/$_gitname"
- python setup.py test
-}
-
package() {
cd "$srcdir/$_gitname"
- 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"
+ pip install --no-deps \
+ --no-warn-script-location \
+ --root="$pkgdir" --isolated \
+ --compile -I .
+ rm "$pkgdir/usr/bin/pdf-stapler" # Same as stapler.
install -Dm644 LICENSE $pkgdir/usr/share/licenses/stapler-git/LICENSE
install -Dm644 README.rst $pkgdir/usr/share/doc/stapler-git/README