summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 228c5d2b1231784556fce3afdb20a993c3f242c1 (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: Hugo Osvaldo Barrera <hugo@barrera.io>

pkgname=python-ansi-git
_pkgname=ansi
pkgver=latest
pkgrel=1
pkgdesc="ANSI cursor movement and graphics"
arch=('any')
url="https://github.com/tehmaze/ansi"
license=('MIT')
depends=('python')
options=(!emptydirs)
source=("git+https://github.com/tehmaze/ansi.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$srcdir/$_pkgname"
  python setup.py build
}

package() {
  cd "$srcdir/$_pkgname"
  python setup.py install --root="$pkgdir/" --optimize=1
}