1 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
5 pkgdesc="Utility making use of the pypdf library for a lighter alternative to pdftk"
6 url="http://github.com/hellerbarde/stapler/tree/master"
9 depends=('python-pypdf')
14 _gitroot="git://github.com/hellerbarde/stapler.git"
19 msg "Connecting to GIT server...."
21 if [ -d $_gitname ] ; then
22 cd $_gitname && git pull origin
23 msg "The local files are updated."
28 msg "GIT checkout done or server timeout"
29 msg "Starting make..."
31 rm -rf "$srcdir/$_gitname-build"
32 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33 cd "$srcdir/$_gitname-build"
34 sed -i '1s+python+python2+' stapler
35 sed -i '1s+python+python2+' staplelib/tests.py
36 sed -i '1s+python+python2+' staplelib/stapler.py
39 cd "$srcdir/$_gitname-build"
40 install -Dm755 stapler $pkgdir/usr/bin/stapler
41 install -d $pkgdir/usr/lib/python2.7/
42 cp -r staplelib $pkgdir/usr/lib/python2.7/
43 install -Dm644 LICENSE $pkgdir/usr/share/licenses/stapler-git/LICENSE
44 install -Dm644 README.md $pkgdir/usr/share/doc/stapler-git/README