# Maintainer: Jon Gjengset # Contributor: Alfredo Palhares # Contributor: Elena ``of Valhalla'' Grandi pkgname=bugseverywhere-git _gitname="be" pkgver=1.5.r1671.4980830 #pkgver=1.5.r1671.49808306c939de24acabc423024970a76055e52b _commit=$(echo "$pkgver" | cut -d'.' -f4) pkgrel=4 epoch=2 pkgdesc="A distributed bugtracker" arch=('any') url="http://bugseverywhere.org/" license=('GPL') depends=("python2" "python2-jinja") makedepends=('git' 'ed' 'python2-docutils') optdepends=( 'python2-cherrypy: HTTPS support' 'python2-yaml: upgrading of BE directories < v1.5' ) provides=('bugseverywhere') conflicts=('bugseverywhere' 'bugseverywhere-bzr') options=(!emptydirs) source=("${pkgname}-${_commit}.tgz::https://gitorious.org/be/be?p=be:be.git;a=snapshot;h=${_commit};sf=tgz") md5sums=('b62b5ed6fd47f98acacde0d49a23a47d') pkgver() { cd "bebe-${_commit}" echo "$(cat .be/version | sed 's/^.*v\([0-9\.]*\)/\1/').$(echo "$pkgver" | cut -d'.' -f3-4)" } build() { cd "bebe-${_commit}" sed -i 's/ python / python2 /' Makefile sed -i 's/ python / python2 /' doc/Makefile make libbe/_version.py make RST2MAN=/usr/bin/rst2man2.py DOC=man build } package() { cd "bebe-${_commit}" make RST2MAN=/usr/bin/rst2man2.py DOC=man INSTALL_OPTIONS="--prefix=${pkgdir}/usr" install install -Dm 644 misc/completion/be.bash "${pkgdir}"/usr/share/bash-completion/completions/be install -Dm 644 misc/completion/be.zsh "${pkgdir}"/usr/share/zsh/site-functions/_be } # vim:set ts=2 sw=2 et: