diff --git a/STATUS.md b/STATUS.md index 6f68b55..05ec5b1 100644 --- a/STATUS.md +++ b/STATUS.md @@ -58,4 +58,4 @@ Definitions: | `xlibre-xserver` | | `xz` | Yes | Yes | | `zlib` | Yes | Yes | -| `zsh` | +| `zsh` | Yes | Yes | diff --git a/bootstrap.sh b/bootstrap.sh index 4318d57..f7ddc62 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -277,6 +277,7 @@ SOURCES=( tar xz zlib + zsh ) for name in $SOURCES; do $TREETAP fetch $SPEC/$name/$name.spec diff --git a/rootbuild.sh b/rootbuild.sh index eecd9e0..72888bb 100755 --- a/rootbuild.sh +++ b/rootbuild.sh @@ -43,7 +43,7 @@ echo "Done!" # NOTE: kmod requires autoconf, automake, libtool to build. ~ahill # NOTE: Linux requires bc, byacc, flex, kmod, ... ~ahill cd /maple -LAYER0="bc byacc bzip2 coreutils diffutils findutils grep gzip libressl m4 make mawk muon musl ncurses patch perl pkgconf sed tar xz zlib" +LAYER0="bc byacc bzip2 coreutils diffutils findutils grep gzip libressl m4 make mawk muon musl ncurses patch perl pkgconf sed tar xz zlib zsh" LAYER1="autoconf automake flex groff libarchive libelf libtool nano" LAYER2="dash nasm cmake fortune-mod kmod linux" PACKAGES="$LAYER0 $LAYER1 $LAYER2" diff --git a/sources/zsh/zsh.spec b/sources/zsh/zsh.spec new file mode 100644 index 0000000..a33c8ac --- /dev/null +++ b/sources/zsh/zsh.spec @@ -0,0 +1,18 @@ +# Maintainer: Alexander Hill +SRC_HASH="9b8d1ecedd5b5e81fbf1918e876752a7dd948e05c1a0dba10ab863842d45acd5" +SRC_NAME="zsh" +SRC_URL="https://www.zsh.org/pub/zsh-5.9.tar.xz" +SRC_VERSION="5.9" + +build() { + tar xf ../$SRC_FILENAME + cd zsh-$SRC_VERSION/ + ./configure $TT_AUTOCONF_COMMON --enable-multibyte --enable-libc-musl + make -O -j $TT_PROCS +} + +package() { + cd zsh-$SRC_VERSION/ + make -O -j $TT_PROCS install DESTDIR=$TT_INSTALLDIR + ln -sf zsh $TT_INSTALLDIR/bin/bash +}