From 112eafe13c3628cad6e692179c064dbbc3be2d8b Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 9 Jun 2023 17:22:31 +0200 Subject: ports/dash: stub out everything needed for dash to compile --- ports/dash | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 ports/dash (limited to 'ports/dash') diff --git a/ports/dash b/ports/dash new file mode 100644 index 0000000..aa15435 --- /dev/null +++ b/ports/dash @@ -0,0 +1,22 @@ +set -eu +camellia_path_check + +VERSION=dash-0.5.12 + +fetch() { + wget -nc https://gondor.apana.org.au/~herbert/dash/files/dash-0.5.12.tar.gz + echo "6a474ac46e8b0b32916c4c60df694c82058d3297d8b385b74508030ca4a8f28a dash-0.5.12.tar.gz" | sha256sum --check + tar xf ${VERSION}.tar.gz +} + +prep() { + [ -d ${VERSION} ] || (fetch) + cd ${VERSION} + [ -e Makefile ] || ./configure CC=x86_64-camellia-gcc "CFLAGS=-Wno-error=format -Wno-error=unused-but-set-variable" --prefix"=$PREFIX" --host=x86_64-camellia +} + +case $1 in + install) (prep; make; make install) ;; + clean) (prep; make clean) ;; + *) echo "usage: $0 install|clean"; false ;; +esac -- cgit v1.2.3