# $Id: PKGBUILD 241692 2015-07-02 09:37:34Z bpiotrowski $
# Maintainer:  Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Thomas Weißschuh <thomas t-8ch de>

pkgname=git-review
pkgver=1.25.0
pkgrel=1
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=('0a061d0e23ee9b93c6212a3fe68fb7ab')

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
}
