updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / llpp-git / PKGBUILD
blobb1bb0363572a6fcdd25ef027a9728b11e2db90f3
1 # Maintainer: Michael Witten <mfwitten>
3 # The various phases of the build can be controlled
4 # with the following variables (use an empty value
5 # to mean false; if you're hacking on the source,
6 # I RECOMMEND skipping the _clean phase):
8 _source=yes
9 _clean=yes
10 _compile=yes
11 _install=yes
12 #_install=          # do not install
14 ######################################################################
16 pkgname=llpp-git
17 pkgver=20110610
18 pkgrel=1
19 pkgdesc="Lightweight but fast and featureful PDF viewer based on MuPDF"
21 arch=(i686 x86_64)
22 url=http://repo.or.cz/w/llpp.git
23 license=(GPL)
25 provides=(llpp)
26 conflicts=(llpp)
28 depends=(freeglut xsel)
30 makedepends=(
31   cvs
32   subversion
33   git
34   ocaml
37 options=('!strip')
39 _gitroot=git://repo.or.cz/llpp.git
40 _gitname=repo
42 build()
44   cd "$srcdir"
46   #### Source ####
48     if [[ ! $_source ]]; then
50       cd "$_gitname"
52     else
54       msg "Connecting to server...."
56       if [[ -d $_gitname ]]; then
58         cd "$_gitname"
59         git pull origin
60         msg "The local files are updated."
62       else
64         git clone "$_gitroot" "$_gitname"
65         cd "$_gitname"
67       fi
69       msg "Checkout done or server timeout"
71     fi
73   # At this point, the current working directory
74   # should be "$srcdir/$_gitname"
76   #### Clean ####
78     if [[ $_clean ]]; then
80       msg "Cleaning ..."
81       git clean -fdx
83     fi
85   #### Configure ####
86   #### Compile ####
88     if [[ $_compile ]]; then
89     
90       msg "Compiling ..."
91       MAKEFLAGS=$MAKEFLAGS' -j1' bash buildall.sh
93     fi
96 package()
98   cd "$srcdir/$_gitname"
100   #### Install  ####
102     if [[ $_install ]]; then
103     
104       msg "Installing ..."
105       install -D llpp "$pkgdir"/usr/bin/llpp
107     fi