summaryrefslogtreecommitdiff
path: root/pcr/loggerhead-bzr/PKGBUILD
blob: c5f6fa528016ad69eafef14100ec7c3fce43d29f (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
# Maintainer: Márcio Silva <coadde@parabola.nu>

_pkgname=loggerhead
pkgname=$_pkgname-bzr
_pkgrev=490
pkgver=r$_pkgrev
pkgrel=2
pkgdesc='The Web viewer for projects in GNU Bazaar'
arch=('any')
license=('GPL2')
depends=('bzr' 'python2-simpletal' 'python2-simplejson' 'python2-paste')
optdepends=('python2-pastedeploy: for proxying through web server software'
            'python2-flup: needs to use FastCGI, SCGI or AJP')
makedepends=('python2-setuptools')
provides=("$_pkgname")
conflicts=("$_pkgname")
url="https://launchpad.net/$_pkgname"
source=("$pkgname-$pkgver::bzr+$url#revision=$_pkgrev")
sha512sums=('SKIP')

prepare() {
  cd $srcdir/$pkgname-$pkgver
  sed -i 's|env python|env python2|' {info.py,serve-branches}
  sed -i 's|/python|/python2|' $_pkgname.wsgi
}

build() {
  cd $srcdir/$pkgname-$pkgver
  python2 setup.py build
}

package() {
  cd $srcdir/$pkgname-$pkgver
  python2 setup.py install --root=$pkgdir
  mv -v $pkgdir/usr/share/{doc,webapps}
  mv -v $pkgdir/usr/{bin/$_pkgname.wsgi,share/webapps/$_pkgname}
}