# vim: ft=zsh if [[ $1 == info ]]; then if ! (($+STAGE_ALPINE_PACKAGES)); then typeset -ga STAGE_ALPINE_PACKAGES STAGE_ALPINE_PACKAGES=( rsync zsh mksh ) fi FSB_INFO_DEPEND=alpine_base FSB_INFO_BASE=%s FSB_INFO_DIR=%s-pkg.$(md5sum <<<"$STAGE_ALPINE_PACKAGES" |tr -d ' \n-') return elif [[ $1 != build ]]; then die "unimplemented action: $*" fi $build_dir/chroot.sh /sbin/apk add --verbose $STAGE_ALPINE_PACKAGES || \ die "Could not install alpine packages: ${(j: :)${(q@)STAGE_ALPINE_PACKAGES}}"