Skip to content

Commit

Permalink
[bash-static] Update & modernize Plan style.
Browse files Browse the repository at this point in the history
Signed-off-by: Fletcher Nichol <fnichol@nichol.ca>
  • Loading branch information
fnichol committed Jun 7, 2018
1 parent d3dfa2c commit 28e09f4
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions bash-static/plan.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
source ../bash/plan.sh

pkg_name=bash-static
pkg_origin=core
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_dirname=${pkg_distname}-$_base_version
pkg_description="\
Bash is the GNU Project's shell. Bash is the Bourne Again SHell. Bash is an \
sh-compatible shell that incorporates useful features from the Korn shell \
(ksh) and C shell (csh). It is intended to conform to the IEEE POSIX \
P1003.2/ISO 9945.2 Shell and Tools standard. It offers functional \
improvements over sh for both programming and interactive use. In addition, \
most sh scripts can be run by Bash without modification.\
"
pkg_upstream_url="http://www.gnu.org/software/bash/bash.html"
pkg_license=('gplv3+')
pkg_dirname=${_distname}-$_base_version

# Throw the run deps into build deps as this will be static
pkg_build_deps=("${pkg_deps[@]}" "${pkg_build_deps[@]}")
pkg_build_deps=(
"${pkg_deps[@]}"
"${pkg_build_deps[@]}"
)
# Empty out the run deps array
pkg_deps=()

Expand All @@ -15,11 +29,11 @@ do_begin() {

do_build() {
./configure \
--prefix=$pkg_prefix \
--prefix="$pkg_prefix" \
--with-curses \
--enable-readline \
--without-bash-malloc \
--with-installed-readline=$(pkg_path_for core/readline) \
--with-installed-readline="$(pkg_path_for core/readline)" \
LDFLAGS="-static $LDFLAGS"

# Link `-ltinfow` rather than `-lcurses` as some symbols appear to have moved
Expand Down

0 comments on commit 28e09f4

Please sign in to comment.