summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fb6ec4ee59b58e2aee2aa5474bedb697dcb569e6 (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
# Maintainer: Alexandr Skurikhin <askurihin@gmail.com>
# Maintainer: Robert Orzanna <orschiro@gmail.com>
# 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/
}