summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f77e017c7c6055d869afbb639a77cddcfc3416a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
pkgname=shellcheck-git-static
pkgver=v0.10.0.r2.g50db9a2
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=${pkgver}")

source=(
    "https://github.com/koalaman/shellcheck/releases/download/latest/shellcheck-latest.linux.x86_64.tar.xz"
)
sha256sums=('SKIP')

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

package() {
    cd "${srcdir}/shellcheck-latest"
    install -Dt "${pkgdir}/usr/bin" "shellcheck"
    install -Dt "${pkgdir}/usr/share/shellcheck" "LICENSE.txt" "README.txt"
}