# Contributor: Jan-Erik Rediger <badboy at archlinux dot us>
# Contributor: Khorne <khorne at khorne dot me>
# Maintainer: Aurélien Desbrières <aurelien@hackers.camp>


pkgname=legit
pkgver=1.1.0
pkgrel=2
pkgdesc="Simplified CLI front-end for git, inspired by <bleep>™ for <bleep>™"
arch=('any')
url=https://github.com/kennethreitz/legit
license=('BSD3')

depends=('python' 'python-args' 'python-click' 'python-clint' 'python-crayons'
         'python-gitdb' 'python-gitpython' 'python-six')
makedepends=('git' 'python-setuptools')
conflicts=('legit-git')
replaces=('legit-git')

source=(https://github.com/frostming/legit/archive/v${pkgver}.tar.gz)
sha256sums=('01730a890ec6df43446f5eca5128fb824bc2e5a9bc9430c5ed6b5814726ec09f')


prepare()
{
  cd "${srcdir}/${pkgname}-${pkgver}"

  sed -ni 's/GitPython==2.1.8/GitPython>=2.1.8/' ./reqs.txt
}

package()
{
  cd "${srcdir}/${pkgname}-${pkgver}"

  python setup.py install --root=${pkgdir}
  install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}
