mirror of
https://github.com/outbackdingo/ports.git
synced 2026-03-22 12:44:45 +00:00
41 lines
851 B
Plaintext
Executable File
41 lines
851 B
Plaintext
Executable File
# description : The Bourne-Again SHell
|
|
# depends : ncurses readline
|
|
|
|
name=bash
|
|
version=5.0.017
|
|
majver=${version%%.*}
|
|
basever=${version%.*}
|
|
patchver=${version##*.}
|
|
release=1
|
|
source="https://ftp.gnu.org/gnu/$name/$name-$basever.tar.gz
|
|
https://ftp.gnu.org/gnu/bash/bash-$basever-patches/bash${majver}0-$patchver"
|
|
|
|
p=0; while [ $p -lt $patchver ]; do
|
|
p=$(( p + 1 ))
|
|
case $p in
|
|
?) s=00$p ;;
|
|
??) s=0$p ;;
|
|
*) s=$p ;;
|
|
esac
|
|
source="$source https://ftp.gnu.org/gnu/bash/bash-$basever-patches/bash${majver}0-$s"
|
|
done
|
|
|
|
build() {
|
|
cd $name-$basever
|
|
|
|
for i in $SRC/bash${majver}0-*; do
|
|
patch -p0 -i $i
|
|
done
|
|
|
|
./configure --prefix=/usr \
|
|
--without-bash-malloc \
|
|
--with-installed-readline \
|
|
--disable-nls
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
mkdir -p $PKG/bin
|
|
mv $PKG/usr/bin/bash $PKG/bin
|
|
ln -s bash $PKG/bin/sh
|
|
}
|