diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2016-08-22 22:55:48 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2016-08-22 22:55:48 -0300 |
commit | 8c9d16dca525b75bd33b368ff24e1f469db6157a (patch) | |
tree | 62b68bb1ee744769609ba457ef35f9c83eb27d5b /pcr/loggerhead-bzr/PKGBUILD | |
parent | 1db3a5ab9bc50d8e93ddd177e3725bad640e8068 (diff) |
add loggerhead-bzr to [pcr]
Diffstat (limited to 'pcr/loggerhead-bzr/PKGBUILD')
-rw-r--r-- | pcr/loggerhead-bzr/PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pcr/loggerhead-bzr/PKGBUILD b/pcr/loggerhead-bzr/PKGBUILD new file mode 100644 index 000000000..6c10a7c34 --- /dev/null +++ b/pcr/loggerhead-bzr/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Márcio Silva <coadde@parabola.nu> + +_pkgname=loggerhead +pkgname=$_pkgname-bzr +_pkgrev=490 +pkgver=r$_pkgrev +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') +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} +} |