summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: af2591a3d5d42abd466bfd41afdf32a262989ced (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
# Maintainer: Jan-Erik Rediger <badboy at archlinux dot us>
# Maintainer: Khorne <khorne at khorne dot me>

pkgname=legit-git
pkgver=0.r533.3439378
pkgrel=1
pkgdesc="Sexy Git CLI, Inspired by GitHub for Macâ„¢."
arch=('any')
url="https://github.com/kennethreitz/legit"
license=('BSD')
depends=('python' 'python-gitpython' 'python-clint' 'python-crayons' 'python-click')
makedepends=('git' 'python-setuptools')
source=("$pkgname::git+https://github.com/kennethreitz/legit.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}


package() {
  cd "$srcdir/$pkgname"

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

# vim:set ts=2 sw=2 sts=2 et: