Package Details: shellcheck-git-static v0.10.0.r2.g50db9a2-1

Git Clone URL: https://aur.archlinux.org/shellcheck-git-static.git (read-only, click to copy)
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
Submitter: cdkitching
Maintainer: cdkitching (Techmeology)
Last Packager: cdkitching
Votes: 4
Popularity: 0.000000
First Submitted: 2017-11-14 15:04 (UTC)
Last Updated: 2024-03-21 01:18 (UTC)

Dependencies (1)

Required by (60)

Sources (1)

Latest Comments

gesh commented on 2024-03-05 15:22 (UTC)

This edit works (code for adding r to release count adapted from fanficfare):

 pkgver() {
   cd "$srcdir/shellcheck-latest"
-  ./shellcheck -V | sed -nE 's/^version: (.*)$/\1/p'
+  ./shellcheck -V \
+    | sed -n '/^version:/{s/^version: //;s/\([^-]*-g\)/r\1/;s#[-:/ ]#.#g;p}'
 }

eclairevoyant commented on 2023-05-16 04:11 (UTC)

0.9.0 available. pkgver function notwithstanding, as it violates Arch packaging guidelines for non-VCS packages

b0o commented on 2021-12-01 08:39 (UTC)

This is failing:

==> Starting pkgver()...
==> ERROR: pkgver is not allowed to contain colons, forward slashes, hyphens or whitespace.
==> ERROR: pkgver() generated an invalid version: v0.8.0-3-g499c993
 -> error making: shellcheck-git-static

kakawait commented on 2020-04-26 18:57 (UTC)

Possible to update aur regarding new static url?

You are downloading ShellCheck from the wrong URL!
Please update to the latest one:
https://github.com/koalaman/shellcheck/releases/download/latest/shellcheck-latest.linux.x86_64.tar.xz

For more information, see:
https://github.com/koalaman/shellcheck/issues/1871
==> ERROR: pkgver is not allowed to be empty.
==> ERROR: pkgver() generated an invalid version:
Error making: shellcheck-git-static

cdkitching commented on 2018-05-28 16:13 (UTC)

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

CyberShadow commented on 2018-04-11 19:29 (UTC) (edited on 2018-04-11 23:28 (UTC) by CyberShadow)

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').