summaryrefslogtreecommitdiff
path: root/pcr/python2-args/PKGBUILD
blob: 6a195c6a388d988261c6beeeb4c365c993b6586d (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
# Contributor (Arch)     : Jan-Erik Rediger <badboy at archlinux dot us>
# Maintainer  (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp>

pkgname=python2-args
_pkgname=args
pkgver=0.r37.36c727b
pkgrel=2
pkgdesc="Command Arguments for Humans."
arch=('any')
url="https://pypi.python.org/pypi/args/"
license=('BSD2')
depends=('python2' 'git' 'python2-setuptools')
source=("$pkgname::git+https://github.com/kennethreitz/args")
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"

  python2 setup.py install --root=$pkgdir

  install -Dm644 LICENSE \
        ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}

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