[buildout]
extends =
  ../gettext/buildout.cfg
  ../ncurses/buildout.cfg
  ../patch/buildout.cfg
parts =
  bash

[bash]
recipe = slapos.recipe.cmmi
shared = true
url-prefix = https://ftp.gnu.org/pub/gnu/bash/bash-5.1
url = ${:url-prefix}.tar.gz
md5sum = bb91a17fd6c9032c26d0b2b78b50aff5
patch-binary = ${patch:location}/bin/patch
patch-prefix = ${:url-prefix}-patches/bash51
patches =
  ${:patch-prefix}-001#57641ddbf92fca25df92a443e36f285a
  ${:patch-prefix}-002#aed44842ed1a05fcfc3ef146991fdaef
  ${:patch-prefix}-003#bf96455600a86420d69f5166575192dd
  ${:patch-prefix}-004#d2c524dba0eea5dc5f00849cc84376a0
  ${:patch-prefix}-005#5081278e6c35154e28d09f582251c529
  ${:patch-prefix}-006#f4a8bcda4b7bd2c72b29c107027608a3
  ${:patch-prefix}-007#bf7816d63ee0476054bf18a488d8bb1b
  ${:patch-prefix}-008#7e5a30d864f834953b22a55c01c8690b
  ${:patch-prefix}-009#8e35f11cbfcefe2c07c64d00601fd713
  ${:patch-prefix}-010#d78ad19986c0355a8d67c9a0e82ad4aa
  ${:patch-prefix}-011#2416386b5ee94e499ccbf71f6fd4aebd
  ${:patch-prefix}-012#879b2d8a03162faebb7234c4cd57c5cd
environment =
  CPPFLAGS=-I${ncurses:location}/include
  LDFLAGS=-L${ncurses:location}/lib -Wl,-rpath=${ncurses:location}/lib
  PATH=${gettext:location}/bin:%(PATH)s
