Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added shellcheck plan #1666

Merged
merged 1 commit into from
Jul 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .bldr.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1070,6 +1070,8 @@ plan_path = "serf"
plan_path = "shadow"
[shared-mime-info]
plan_path = "shared-mime-info"
[shellcheck]
plan_path = "shellcheck"
[shield]
plan_path = "shield"
[shield-agent]
Expand Down
15 changes: 15 additions & 0 deletions shellcheck/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# shellcheck

ShellCheck is a GPLv3 tool that gives warnings and suggestions for bash/sh shell scripts.

## Maintainers

* The Habitat Maintainers: <[email protected]>

## Type of Package

Binary package

## Usage

*TODO: Add instructions for usage*
48 changes: 48 additions & 0 deletions shellcheck/plan.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
pkg_name=shellcheck
hkg_name=ShellCheck
pkg_origin=core
pkg_version=0.5.0
pkg_license=('GPL-3')
pkg_upstream_url="http://www.shellcheck.net/"
pkg_description="ShellCheck is a GPLv3 tool that gives warnings and suggestions for bash/sh shell scripts"
pkg_maintainer="The Habitat Maintainers <[email protected]>"
pkg_source="https://hackage.haskell.org/package/${hkg_name}-${pkg_version}/${hkg_name}-${pkg_version}.tar.gz"
pkg_shasum="2b9430736f48de17a60c035546a6a969c14392521bec30119e1c869017d3307c"
pkg_dirname="${hkg_name}-${pkg_version}"

pkg_bin_dirs=(bin)
pkg_lib_dirs=(lib)

pkg_deps=(
core/glibc
core/gmp
core/libffi
)

pkg_build_deps=(
core/cabal-install
core/ghc
)

do_clean() {
do_default_clean

# Strip any previous cabal config
rm -rf /root/.cabal
}

do_build() {
cabal sandbox init
cabal update

# Install dependencies
cabal install --only-dependencies

# Configure and Build
cabal configure --prefix="$pkg_prefix"
cabal build
}

do_install() {
cabal copy
}