summaryrefslogtreecommitdiff
path: root/pcr/legit/PKGBUILD
blob: 7e7baea82facd3bc75cafe70bfc0fbc660e17e54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor  (AUR): Jan-Erik Rediger <badboy at archlinux dot us>
# Contributor (AUR): Khorne <khorne at khorne dot me>
# Maintainer (Parabola): 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
}