1 # Maintainer: Samuel Dionne-Riel <samuel@dionne-riel.com>
6 pkgver=${_bash_version}.$_patchlevel
8 pkgdesc="The GNU Bourne Again shell"
11 url="http://www.gnu.org/software/bash/bash.html"
13 #This is not your system bash.
14 #backup=(etc/profile.bash etc/skel/.bashrc etc/skel/.bash_profile)
15 depends=('readline>=5.2' 'glibc')
17 #This would cause a conflict
19 source=(http://ftp.gnu.org/gnu/bash/bash-${_bash_version}.tar.gz
20 bash-noinfo.patch bash${_bash_version/.}.rc bash${_bash_version/.})
22 md5sums=('ef5304c4b22aaa5088972c792ed45d72'
23 'f2a3cf51e58f9b82af50b861191d96fd'
24 'eb7361b4e9b659d20dca1281287a8e2f'
25 'cd470742fd7839b9ca5c074d2b4a202a'
26 'c0d33bdfed6e4e6a9ae9200b77cd5c99'
27 '0c9be3bad344d04b79c4eac9eb39624c'
28 '04750485f335972f7a980a1bfe048dba'
29 '0c2856794ab16a4c224223c1964140c2'
30 '943233d7227071fa040c8b9eb016fa0c'
31 '68a41a9da7c669b4358837d06556a06f'
32 'f6ca4950256fefd88d49c5702338e501'
33 '4fd01140cb5875fe020939aab02791f0'
34 '37aad0d5aa57881742ec6419faf9e480'
35 '91c52d2a51d41d4b6907758952aa0554'
36 '37ace691fc4bd386fb764b5f53cde4a1'
37 'cd5d17f0729a6da39a60039f2730e408'
38 '31317d6a80bed2eb9b6fd3d12d304259'
39 '7f4aef181659265d822c48e774834975'
40 '1c05456b278235f578009b8fb2454a9a'
41 'fbc981edfff97a0940487937db3fb202'
42 'b08ffabafce3a967e3a7e0a5b29d8331')
44 for p in $(seq -w 001 $_patchlevel); do
45 source=(${source[@]} http://ftp.gnu.org/gnu/bash/bash-${_bash_version}-patches/bash${_bash_version/.}-$p)
50 cd ${startdir}/src/bash-${_bash_version}
51 for p in ../bash${_bash_version/.}-*; do
52 msg "applying patch ${p}"
53 patch -Np0 -i ${p} || return 1
55 patch -Np1 -i ../bash-noinfo.patch || return 1
57 ./configure --prefix=/opt/bash${_bash_version/.}/ --with-curses --enable-readline \
58 --without-bash-malloc --with-installed-readline
60 make DESTDIR=${startdir}/pkg install
62 install -D -m755 ${startdir}/src/bash${_bash_version/.} ${startdir}/pkg/usr/bin/bash${_bash_version/.}
64 install -D -m644 $startdir/src/bash${_bash_version/.}.rc $startdir/pkg/opt/bash${_bash_version/.}/bash${_bash_version/.}.rc
67 # vim:set ts=2 sw=2 et: