# Maintainer: PktSurf <smlinux@pktsurf.in>
app=shellcheck-bin
version=0.8.0
build=1sml
homepage="https://github.com/koalaman/shellcheck"
download="https://github.com/koalaman/shellcheck/releases/download/v$version/shellcheck-v$version.linux.$arch.tar.xz"
desc="Advanced UNIX shell script analyser"
requires="musl"
   
prepbuilddir() {
  mkandenterbuilddir
  rm -rf shellcheck-bins-$version

  tar xf $srcdir/shellcheck-bins-$version.tar.?z*
  cd shellcheck-bins-$version
  fixbuilddirpermissions
}

build() {
  install -Dm 755 shellcheck.$arch $pkg/bin/shellcheck

  cp LICENSE.txt $pkgdocs/

  mkfinalpkg
}

sha512sums="
d5469f50489884b766b0ad684f6b33fa54683660241428684fb9e561c862f2904427ddb53fdcaec75cb2e520612fa1450aa1eb21a3e575b6cd1c2fdf6d672be6  shellcheck-bins-0.8.0.tar.lz
"
