diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -1,24 +1,21 @@ pkgname=shellcheck-git-static -pkgver=0.4.6 +pkgver=0.4.7 pkgrel=1 pkgdesc="shellcheck-static, but using the latest-commit builds maintained by the author" license=("AGPL3") arch=("i686" "x86_64") depends=('gmp') conflicts=("shellcheck") -provides=("shellcheck=0.4.6") +provides=("shellcheck=${pkgver}") source=( "https://storage.googleapis.com/shellcheck/shellcheck-latest.linux.x86_64.tar.xz" - - # We need this just to compute the pkgver to use :D - "git+https://github.com/koalaman/shellcheck.git#branch=master" ) -sha256sums=('SKIP' 'SKIP') +sha256sums=('SKIP') pkgver() { - cd "$srcdir/shellcheck" - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + cd "$srcdir/shellcheck-latest" + ./shellcheck -V | sed -nE 's/^version: (.*)$/\1/p' } package() { |