30 lines
695 B
Bash
30 lines
695 B
Bash
# Template file for 'shellcheck'
|
|
pkgname=shellcheck
|
|
version=0.5.0
|
|
revision=1
|
|
hostmakedepends="cabal-install"
|
|
short_desc="A static analysis tool for shell scripts"
|
|
maintainer="Diogo Leal <diogo@diogoleal.com>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://www.shellcheck.net/"
|
|
distfiles="https://github.com/koalaman/shellcheck/archive/v${version}.tar.gz"
|
|
checksum=348a3f7892c1f28a44f188c00ac82f1b3bf899d9f81d14ddb0e306db26c937bb
|
|
nocross=yes
|
|
nopie=yes
|
|
|
|
do_build() {
|
|
cabal sandbox init
|
|
cabal update
|
|
cabal install ${makejobs} --only-dependencies
|
|
cabal configure
|
|
cabal build ${makejobs}
|
|
}
|
|
|
|
do_check() {
|
|
cabal test
|
|
}
|
|
|
|
do_install() {
|
|
vbin dist/build/shellcheck/shellcheck
|
|
vdoc shellcheck.1.md
|
|
}
|