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):
12 #_install= # do not install
14 ######################################################################
19 pkgdesc="Lightweight but fast and featureful PDF viewer based on MuPDF"
22 url=http://repo.or.cz/w/llpp.git
28 depends=(freeglut xsel)
39 _gitroot=git://repo.or.cz/llpp.git
48 if [[ ! $_source ]]; then
54 msg "Connecting to server...."
56 if [[ -d $_gitname ]]; then
60 msg "The local files are updated."
64 git clone "$_gitroot" "$_gitname"
69 msg "Checkout done or server timeout"
73 # At this point, the current working directory
74 # should be "$srcdir/$_gitname"
78 if [[ $_clean ]]; then
88 if [[ $_compile ]]; then
91 MAKEFLAGS=$MAKEFLAGS' -j1' bash buildall.sh
98 cd "$srcdir/$_gitname"
102 if [[ $_install ]]; then
105 install -D llpp "$pkgdir"/usr/bin/llpp