summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d5eb278d473df677cefa549dc9ea0d1a21429198 (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
pkgname=shellcheck-git-static
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=${pkgver}")

source=(
    "https://storage.googleapis.com/shellcheck/shellcheck-latest.linux.x86_64.tar.xz"
)
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/shellcheck-latest"
  ./shellcheck -V | sed -nE 's/^version: (.*)$/\1/p'
}

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