void-packages/srcpkgs/shellcheck/template

26 lines
645 B
Bash

# Template file for 'shellcheck'
pkgname=shellcheck
version=0.4.3
revision=1
hostmakedepends="cabal-install"
short_desc="A static analysis tool for shell scripts"
maintainer="Diogo Leal <diogo@diogoleal.com>"
license="GPL-3"
homepage="http://www.shellcheck.net/"
distfiles="https://github.com/koalaman/shellcheck/archive/v${version}.tar.gz"
checksum=229a3bd5e38c4da2ce7ddf43c06ca388454e0406f3dbfc44865208b6b334109e
nocross=yes
do_build() {
cabal sandbox init
cabal update
cabal install ${makejobs} --only-dependencies
cabal configure
cabal build ${makejobs}
}
do_install() {
vbin dist/build/shellcheck/shellcheck
vdoc shellcheck.1.md
}