2021-01-23 05:44:05 +13:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
2020-05-10 11:50:31 -04:00
|
|
|
port=dash
|
|
|
|
version=0.5.10.2
|
|
|
|
useconfigure=true
|
2021-04-25 23:30:38 +02:00
|
|
|
files="http://gondor.apana.org.au/~herbert/dash/files/dash-${version}.tar.gz dash-${version}.tar.gz 3c663919dc5c66ec991da14c7cf7e0be8ad00f3db73986a987c118862b5f6071"
|
2020-05-10 11:50:31 -04:00
|
|
|
auth_type="sha256"
|
2021-04-12 09:18:56 +02:00
|
|
|
|
|
|
|
configure() {
|
2021-04-20 18:29:35 +02:00
|
|
|
host_env
|
|
|
|
run autoupdate
|
|
|
|
run autoconf
|
|
|
|
run aclocal
|
|
|
|
run automake --add-missing
|
|
|
|
run mkdir -p host-build
|
2021-09-27 00:16:18 +02:00
|
|
|
run sh -c "cd host-build && ../configure ${configopts[@]} CFLAGS=-I."
|
2021-04-20 18:29:35 +02:00
|
|
|
target_env
|
|
|
|
run mkdir -p target-build
|
2021-09-27 00:16:18 +02:00
|
|
|
run sh -c "cd target-build && ../configure --host="${SERENITY_ARCH}-pc-serenity" --disable-helpers ${configopts[@]} CFLAGS=-I."
|
2021-04-12 09:18:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2021-04-20 18:29:35 +02:00
|
|
|
host_env
|
2021-09-27 00:16:18 +02:00
|
|
|
run sh -c "cd host-build && make ${makeopts[@]}"
|
2021-04-20 18:29:35 +02:00
|
|
|
run cp host-build/src/{mkinit,mksyntax,mknodes,mksignames} src
|
|
|
|
target_env
|
2021-09-27 00:16:18 +02:00
|
|
|
run sh -c "cd target-build && make ${makeopts[@]}"
|
2021-04-12 09:18:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
install() {
|
2021-09-27 00:16:18 +02:00
|
|
|
run sh -c "cd target-build && make DESTDIR="${SERENITY_INSTALL_ROOT}" ${installopts[@]} install"
|
2021-04-12 09:18:56 +02:00
|
|
|
}
|