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):
14 #_install= # do not install
16 ######################################################################
21 pkgdesc="Backup tool (built from git repo); it handles many very large files"
24 url=https://github.com/apenwarr/bup
44 #pandoc Currrently the pre-generated docs are used.
50 _gitroot=git://github.com/apenwarr/bup.git
59 if [[ ! $_source ]]; then
65 msg "Connecting to server...."
67 if [[ -d $_gitname ]]; then
71 msg "The local files are updated."
75 git clone "$_gitroot" "$_gitname"
80 msg "Checkout done or server timeout"
84 # At this point, the current working directory
85 # should be "$srcdir/$_gitname"
89 if [[ $_clean ]]; then
99 if [[ $_config ]]; then
101 msg "Configuring ..."
102 find . -name \*.py -exec sed -i '1s/env python\b/env python2/' {} +
103 sed -i -e 's/PYTHON=python\b/PYTHON=python2/' -e '/docs-available/d' Makefile
109 if [[ $_compile ]]; then
118 if [[ $_test ]]; then
128 cd "$srcdir/$_gitname"
132 if [[ $_install ]]; then
135 make DESTDIR="$pkgdir" install