diff options
author | Hugo Osvaldo Barrera | 2015-06-09 02:35:14 -0300 |
---|---|---|
committer | Hugo Osvaldo Barrera | 2015-06-09 02:35:14 -0300 |
commit | e854a915441467e1968b69af449a083756c52592 (patch) | |
tree | 60f72c78e95935491f86576be75f656da670c0a4 | |
download | aur-e854a915441467e1968b69af449a083756c52592.tar.gz |
Initial commit.
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..afc25474db5a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = python-ansi-git + pkgdesc = ANSI cursor movement and graphics + pkgver = latest + pkgrel = 1 + url = https://github.com/tehmaze/ansi + arch = any + license = MIT + depends = python + options = !emptydirs + source = git+https://github.com/tehmaze/ansi.git + md5sums = SKIP + +pkgname = python-ansi-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..228c5d2b1231 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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 +} + |