diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 22 |
2 files changed, 11 insertions, 13 deletions
@@ -4,7 +4,7 @@ pkgbase = git-completion pkgrel = 1 url = https://github.com/felipec/git-completion arch = any - license = GPLv2 + license = GPL2 makedepends = git source = git-completion::git+https://github.com/felipec/git-completion.git#tag=v1.4 sha256sums = SKIP @@ -1,29 +1,27 @@ # Maintainer: Felipe Contreras <felipe.contreras@gmail.com> -# shellcheck disable=SC2154,SC2115 - pkgname=git-completion pkgver=1.4 pkgrel=1 pkgdesc='Git completions for Zsh and Bash' url="https://github.com/felipec/$pkgname" arch=('any') -license=('GPLv2') +license=('GPL2') makedepends=('git') source=("$pkgname::git+$url.git#tag=v$pkgver") sha256sums=('SKIP') check() { - cd $pkgname && - make test + cd $pkgname && + make test } package() { - cd $pkgname && - # TODO find a better location than /usr/local/share - DESTDIR="$pkgdir" make \ - zshfuncdir=/usr/share/zsh/site-functions \ - completionsdir=/usr/local/share/bash-completion/completions \ - sharedir=/usr/share/git-completion \ - install + cd $pkgname && + # TODO find a better location than /usr/local/share + DESTDIR="$pkgdir/" make \ + zshfuncdir=/usr/share/zsh/site-functions \ + completionsdir=/usr/local/share/bash-completion/completions \ + sharedir=/usr/share/git-completion \ + install } |