updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / print-booklet-git / PKGBUILD
blob9003901ed9abc510a182bc7ec81dee28ca5b3881
1 # Maintainer: Wilhelm Matilainen <wilhelm.matilainen@gmail.com>
2 pkgname=print-booklet-git
3 pkgver=20111104
4 pkgrel=2
5 pkgdesc="Print booklets from pdf and postscript files."
6 arch=(any)
7 url="https://gitorious.org/scripd/print-booklet"
8 license=('AGPL3')
9 groups=()
10 depends=('psutils')
11 makedepends=('git')
12 provides=()
13 conflicts=()
14 replaces=()
15 backup=()
16 options=()
17 install=
18 source=()
19 noextract=()
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/"
28 function inbin()
30   install -Dm755 "$indir/$1" "$outdir/$1" 
33 build() {
34   cd "$srcdir"
35   msg "Connecting to GIT server...."
37   if [[ -d "$_gitname" ]]; then
38     cd "$_gitname" && git pull origin
39     msg "The local files are updated."
40   else
41     git clone "$_gitroot" "$_gitname"
42   fi
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"
51   #
52   # BUILD HERE
53   #
55   inbin print-booklet-ps
56   inbin print-booklet-pdf
57   inbin print-booklet-allindir
60 # vim:set ts=2 sw=2 et: