diff options
author | dzwdz | 2023-06-09 17:22:31 +0200 |
---|---|---|
committer | dzwdz | 2023-06-09 17:22:31 +0200 |
commit | 112eafe13c3628cad6e692179c064dbbc3be2d8b (patch) | |
tree | 04bdb3df2d2e6fd7042dbefa117ff0e5a5447476 /ports/dash | |
parent | 668655053911072741883fd258c23e9d0668a853 (diff) |
ports/dash: stub out everything needed for dash to compile
Diffstat (limited to 'ports/dash')
-rw-r--r-- | ports/dash | 22 |
1 files changed, 22 insertions, 0 deletions
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 |