# Maintainer: Alexandr Skurikhin # Maintainer: Robert Orzanna # Maintainer: Quan Guo < guotsuan@gmail.com> pkgname=cheat-git pkgver=2.2.3 pkgrel=1 pkgdesc="Cheat allows you to create and view interactive cheatsheets on the command-line" arch=('any') license=('GPL3') url="https://github.com/chrisallenlane/cheat" depends=('python2' 'python2-docopt') optdepends=('python2-pygments' 'bash-completion') makedepends=('git') source=("$pkgname::git+https://github.com/chrisallenlane/cheat.git") md5sums=('SKIP') pkgver() { cd $pkgname git describe | sed 's/^v//;s/-/./g' } package(){ cd "$pkgname" python2 setup.py install --root=$pkgdir install -dm755 ${pkgdir}/usr/share/bash-completion/completions/ install -m 644 ${srcdir}/$pkgname/cheat/autocompletion/cheat.bash $pkgdir/usr/share/bash-completion/completions/ }