summaryrefslogtreecommitdiff
path: root/pcr/legit/PKGBUILD
blob: 20e0c8dbea00ce2d6cc0f4379a09e55354ce014f (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: 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
}