summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 29bc95c94dea3533e70d8ae95760ee5b975236cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Maintainer: Jon Gjengset <jon@tsp.io>
# Contributor: Alfredo Palhares <masterkorp@masterkorp.net>
# Contributor: Elena ``of Valhalla'' Grandi <elena.valhalla@gmail.com>

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: