Files
ports/core/bash/spkgbuild
2023-11-10 03:15:38 +00:00

32 lines
588 B
Plaintext
Executable File

# description : The Bourne-Again SHell
# depends : ncurses readline
name=bash
version=5.2.21
majver=${version%%.*}
basever=${version%.*}
patchver=${version##*.}
release=1
source="https://ftp.gnu.org/gnu/$name/$name-$version.tar.gz
bashrc profile"
build() {
cd $name-$version
./configure \
--prefix=/usr \
--with-curses \
--enable-readline \
--without-bash-malloc \
--with-installed-readline
make
make DESTDIR=$PKG install
mkdir -p $PKG/bin
mv $PKG/usr/bin/bash $PKG/bin
install -d $PKG/etc
install -m644 $SRC/bashrc $PKG/etc
install -m644 $SRC/profile $PKG/etc
}