diff options
author | John ShaggyTwoDope Jenkins | 2015-10-18 00:55:45 -0700 |
---|---|---|
committer | John ShaggyTwoDope Jenkins | 2015-10-18 00:55:45 -0700 |
commit | 1fb52188a8acaf575fc915838d5acabd350629f9 (patch) | |
tree | e43e138fdca23e93592cb7794063d7ef2cfbc699 /PKGBUILD | |
download | aur-asciimatics-git.tar.gz |
init commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ba58139d5780 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: John Jenkins <twodopeshaggy@gmail.com> + + +_pkgname=asciimatics +pkgname=asciimatics-git +pkgver=r261.4d9d846 +pkgrel=1 +pkgdesc="A cross platform package to do curses-like operations and create ASCII art animations" +arch=('any') +url="https://github.com/peterbrittain/asciimatics" +license=('APACHE2') +depends=('python' 'python-pyfiglet') +makedepends=('git') +source=('git://github.com/peterbrittain/asciimatics.git') +md5sums=('SKIP') + +pkgver() { + cd $srcdir/$_pkgname + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "$srcdir/$_pkgname" + python setup.py install --root="$pkgdir/" --optimize=1 + mkdir -p $pkgdir/usr/share/licenses/$_pkgname/ + install -m 0644 LICENSE $pkgdir/usr/share/licenses/$_pkgname/ +} |