updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / rbtools / PKGBUILD
blob5e91b307b9340c275ec2a56651aa99fe99c0a5c8
1 pkgname=rbtools
2 verprefix=0.3
3 pkgver=${verprefix}.4
4 pkgrel=1
5 pkgdesc="Client tools for Review Board"
6 arch=('any')
7 url="http://www.reviewboard.org/"
8 license=('custom:MIT')
9 depends=('python2')
10 makedepends=('setuptools')
11 source=(http://downloads.reviewboard.org/releases/RBTools/${verprefix}/RBTools-${pkgver}.tar.gz)
12 md5sums=('4034c76fcb5c2d6ffb8c09116a942888')
14 build() {
15   cd "$srcdir/RBTools-$pkgver"
16   find . -type f -exec sed -i 's@#!/usr.*python@#!/usr/bin/python2@' {} \;
17   export PYTHON=python2
18   python2 setup.py build || return 1
21 package() {
22   cd "$srcdir/RBTools-$pkgver"
23   python2 setup.py install --root "${pkgdir}" || return 1
24   install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
25   install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
28 # vim: set ts=2 sw=2 et: