diff options
author | Jameson Pugh | 2019-02-11 10:57:18 -0500 |
---|---|---|
committer | Jameson Pugh | 2019-02-11 10:57:18 -0500 |
commit | c57c54a281c96b495dda361828f03daa68670f3c (patch) | |
tree | 0252be5145c45144a12d7057f7e8bd29af649590 | |
parent | 591b86fa776fa10225c8a68753ad443848675246 (diff) | |
download | aur-c57c54a281c96b495dda361828f03daa68670f3c.tar.gz |
2.5.0 (finally)
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 16 |
2 files changed, 18 insertions, 10 deletions
@@ -1,6 +1,6 @@ pkgbase = python-cheat pkgdesc = Cheat allows you to create and view interactive cheatsheets on the command-line. - pkgver = 2.3.1 + pkgver = 2.5.0 pkgrel = 1 url = https://github.com/chrisallenlane/cheat arch = any @@ -8,9 +8,13 @@ pkgbase = python-cheat makedepends = python depends = python depends = python-docopt - optdepends = python-pygments - source = https://github.com/chrisallenlane/cheat/archive/2.3.1.tar.gz - sha256sums = f944612b1d1b97dbe87c6cc3c68932df983482f53a09b0446c318ee7399c865c + depends = python-pygments + depends = python-termcolor + optdepends = bash-completion + optdepends = zsh-completions + optdepends = fish + source = https://github.com/chrisallenlane/cheat/archive/2.5.0.tar.gz + sha256sums = 154379dc3dadb23e270418754c264e4080aba1a4f621d26b3b4abeed71d1d6c9 pkgname = python-cheat @@ -1,26 +1,30 @@ # Maintainer: Jameson Pugh <imntreal@gmail.com> pkgname=python-cheat -pkgver=2.3.1 +pkgver=2.5.0 pkgrel=1 pkgdesc="Cheat allows you to create and view interactive cheatsheets on the command-line." url="https://github.com/chrisallenlane/cheat" -depends=('python' 'python-docopt') +depends=('python' 'python-docopt' 'python-pygments' 'python-termcolor') makedepends=('python') -optdepends=('python-pygments') +optdepends=('bash-completion' 'zsh-completions' 'fish') license=('GPL3') arch=('any') source=("https://github.com/chrisallenlane/cheat/archive/${pkgver}.tar.gz") -sha256sums=('f944612b1d1b97dbe87c6cc3c68932df983482f53a09b0446c318ee7399c865c') +sha256sums=('154379dc3dadb23e270418754c264e4080aba1a4f621d26b3b4abeed71d1d6c9') build() { - cd "$srcdir/cheat-${pkgver}" + cd "${srcdir}/cheat-${pkgver}" python setup.py build } package() { - cd "$srcdir/cheat-${pkgver}" + cd "${srcdir}/cheat-${pkgver}" python setup.py install --root="$pkgdir" --optimize=1 + install -dm755 "${pkgdir}"/usr/share/{bash-completion/completions,zsh/site-functions,fish/completions} + install -m 644 cheat/autocompletion/cheat.bash "${pkgdir}/usr/share/bash-completion/completions/cheat" + install -m 644 cheat/autocompletion/cheat.zsh "${pkgdir}/usr/share/zsh/site-functions/cheat" + install -m 644 cheat/autocompletion/cheat.fish "${pkgdir}/usr/share/fish/completions/cheat" } # vim:set ts=2 sw=2 et: |