1 # Contributor: Elena ``of Valhalla'' Grandi <elena.valhalla@gmail.com>
2 pkgname=bugseverywhere-git
5 pkgdesc="A distributed bugtracker"
7 url="http://bugseverywhere.org/be"
9 depends=('python2' 'python-yaml')
10 makedepends=('git' 'ed')
11 optdepends=('cherrypy: web interface')
12 provides=('bugseverywhere')
13 conflicts=('bugseverywhere' 'bugseverywhere-bzr')
17 #source=($pkgname-$pkgver.tar.gz)
19 md5sums=() #generate with 'makepkg -g'
21 _gitroot="git://gitorious.org/be/be"
27 msg "Connecting to GIT server...."
29 if [ -d $_gitname ] ; then
30 cd $_gitname && git pull origin
31 msg "The local files are updated."
33 git clone $_gitroot $_gitname
36 msg "GIT checkout done or server timeout"
37 msg "Starting make..."
39 rm -rf "$srcdir/$_gitname-build"
40 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
41 cd "$srcdir/$_gitname-build"
43 # Fix hardcoded values in Makefile
44 sed -i 's/^PREFIX = ${HOME}/PREFIX = \/usr/' Makefile
51 sed -i 's/^INSTALL_OPTIONS.*/INSTALL_OPTIONS = --optimize=1 --root="${PKGDIR}\/"/' Makefile
53 # use python2 instead of python
54 sed -i 's/python /python2 /' Makefile
56 # Do not build the documentation:
57 # the sphinx docs do not build with version 1.0.3 of sphinx and
58 # the manpage introduces problematic dependencies
59 # besides be --help is currently more useful
60 sed -i 's/^install: build doc/install: build/' Makefile
62 sed -i 's/^.*share\/man\/man1.*$//' setup.py
70 # vim:set ts=2 sw=2 et: