# $Id: PKGBUILD 239704 2015-05-24 12:38:20Z bpiotrowski $
# Maintainer:  Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Thomas Weißschuh <thomas t-8ch de>

pkgname=git-review
pkgver=1.24
pkgrel=4
pkgdesc='Tool to submit code to Gerrit'
arch=('any')
url='https://github.com/openstack-infra/git-review'
license=('APACHE')
depends=('python-requests' 'python-setuptools')
source=(https://pypi.python.org/packages/source/g/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('537c78591e74853c204c5b3d88c0c4fd')

build() {
  cd $pkgname-$pkgver
  python setup.py build
}

package() {
  cd $pkgname-$pkgver
  python setup.py install --optimize=1 --root="$pkgdir"
  install -Dm644 git-review.1 "$pkgdir"/usr/share/man/man1/git-review.1
}
