Package shellcheck: Specfile

# shellcheck requires newer modules then we have in Sisyphus
# So... We build static shellcheck with bundled new modules.
%def_disable getsource

Name: shellcheck
Version: 0.4.6
Release: alt1
License: %gpl3only
Group: Development/Tools

BuildRequires(pre): rpm-build-licenses
BuildRequires: ghc7.6.1 ghc7.6.1-cabal-install

%if_disabled getsource
Source: %name-%version.tar

Summary: Shell script analysis tool

The goals of ShellCheck are:
* To point out and clarify typical beginner's syntax issues, that causes
a shell to give cryptic error messages;
* To point out and clarify typical intermediate level semantic problems,
that causes a shell to behave strangely and counter-intuitively;
* To point out subtle caveats, corner cases and pitfalls, that may cause
an advanced user's otherwise working script to fail under future

%if_enabled getsource
%setup -c -T

%if_enabled getsource
rm -rf $HOME/.cabal
mkdir shellcheck-%version
ln -s -r -f shellcheck-%version $HOME/.cabal
cabal update
cabal fetch shellcheck-%version
tar -cf shellcheck-%version.tar shellcheck-%version
exit 1
rm -rf $HOME/.cabal
ln -s -r -f . $HOME/.cabal
[ -n "$NPROCS" ] || NPROCS=%__nprocs; cabal install -j$NPROCS shellcheck-%version

mkdir -p %buildroot%_bindir
cp bin/shellcheck %buildroot%_bindir


* Thu May 25 2017 Gleb F-Malinovskiy <> 0.4.6-alt1
- Updated to 0.4.6.

* Tue Nov 22 2016 Gleb F-Malinovskiy <> 0.4.5-alt1
- Initial build.