mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
26 lines
469 B
Plaintext
26 lines
469 B
Plaintext
name=bash
|
|
revision=2
|
|
from_source=bash
|
|
imagedeps="build-essential"
|
|
hostdeps="xgcc xbinutils"
|
|
deps="readline base"
|
|
|
|
configure() {
|
|
cp -rp ${source_dir}/* .
|
|
CFLAGS_FOR_BUILD="-std=gnu17 -g" ./configure --host=x86_64-astral --prefix=${prefix} --without-bash-malloc
|
|
}
|
|
|
|
build() {
|
|
make -j ${parallelism}
|
|
}
|
|
|
|
package() {
|
|
make install DESTDIR=${dest_dir}
|
|
|
|
mkdir -p ${dest_dir}/bin
|
|
pushd ${dest_dir}/bin
|
|
ln -sv ${prefix}/bin/bash sh
|
|
ln -sv ${prefix}/bin/bash bash
|
|
popd
|
|
}
|