1 # Maintainer: spider-mario <spidermario@free.fr>
2 pkgname=jbig2enc-pdf-git
5 pkgdesc="pdf.py from jbig2enc"
7 url="https://github.com/agl/jbig2enc"
11 _gitroot="https://github.com/agl/jbig2enc.git"
16 msg "Connecting to GIT server..."
18 if [ -d $_gitname ] ; then
19 cd $_gitname && git pull origin
20 msg "The local files are updated."
22 git clone $_gitroot $_gitname
25 msg "GIT checkout done or server timeout"
29 cd "$srcdir/$_gitname"
30 install --directory "$pkgdir"/usr/bin/
31 sed --expression 's#/usr/bin/python#/usr/bin/env python2#' pdf.py > "$pkgdir"/usr/bin/pdf.py
32 chmod +x "$pkgdir"/usr/bin/pdf.py
35 # vim:set ts=2 sw=2 et: