Package Details: shellcheck-git-static 0.4.7-1

Git Clone URL: https://aur.archlinux.org/shellcheck-git-static.git (read-only)
Package Base: shellcheck-git-static
Description: shellcheck-static, but using the latest-commit builds maintained by the author
Upstream URL: None
Licenses: AGPL3
Conflicts: shellcheck
Provides: shellcheck=0.4.7
Submitter: cdkitching
Maintainer: cdkitching
Last Packager: cdkitching
Votes: 1
Popularity: 0.000087
First Submitted: 2017-11-14 15:04
Last Updated: 2018-05-28 16:13

Dependencies (1)

Required by (8)

Sources (1)

Latest Comments

cdkitching commented on 2018-05-28 16:13

Great idea, thanks. Merged that in (and bumped the version slightly)

CyberShadow commented on 2018-04-11 19:29

I suggest the following change, to avoid fetching the git repository, and avoid possible mismatch in case the repository or the binary is updated before the other:

diff --git a/PKGBUILD b/PKGBUILD
index [`49aa033`](https://aur.archlinux.org/cgit/aur.git/commit/?h=shellcheck-git-static&id=49aa033)..b92daf1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,15 +10,12 @@ provides=("shellcheck=0.4.6")

 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() {

Lack of verification is probably not a good thing, though - maybe updating the PKGBUILD with the correct checksum with each release is preferable.

Also, this currently fails to build in a chroot with "Cannot find the git package needed to handle git sources" because of missing makedepends=('git').