1 # Maintainer: Wilhelm Matilainen <wilhelm.matilainen@gmail.com>
2 pkgname=print-booklet-git
5 pkgdesc="Print booklets from pdf and postscript files."
7 url="https://gitorious.org/scripd/print-booklet"
20 md5sums=() #generate with 'makepkg -g'
22 _gitroot="git://gitorious.org/scripd/print-booklet.git"
23 _gitname="print-booklet"
25 indir="$srcdir/$_gitname"
26 outdir="$pkgdir/usr/bin/"
30 install -Dm755 "$indir/$1" "$outdir/$1"
35 msg "Connecting to GIT server...."
37 if [[ -d "$_gitname" ]]; then
38 cd "$_gitname" && git pull origin
39 msg "The local files are updated."
41 git clone "$_gitroot" "$_gitname"
44 msg "GIT checkout done or server timeout"
45 msg "Starting build..."
47 rm -rf "$srcdir/$_gitname-build"
48 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
49 cd "$srcdir/$_gitname-build"
55 inbin print-booklet-ps
56 inbin print-booklet-pdf
57 inbin print-booklet-allindir
60 # vim:set ts=2 sw=2 et: