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

pkgname=loggerhead
pkgver=1.18.1
pkgrel=1
pkgdesc='The Web viewer for projects in GNU Bazaar'
arch=('i686' 'x86_64' 'armv7h')
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')
url="https://launchpad.net/$pkgname"
source=("$url/${pkgver%.*}/$pkgver/+download/$pkgname-$pkgver.tar.gz")
sha512sums=('d265b3470bd744266ae8ee4c90a749b875b528f88924bae28f03417cbe460b82ea8649b00371b50dad679be386d56063f02a78b0f73466edb04aa75612df79e4')

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

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

package() {
  cd $srcdir/$pkgname-$pkgver
  python2 setup.py install --root=$pkgdir
}