zsh (1524B)
1 {% extends "autotools" %} 2 {%- block extra_deps %} 3 #+{{pkg_install_name("netbsd-curses")}} 4 #+{{pkg_install_name("libbsd")}} 5 #@git:{{submodule.current["zsh_config"]}}:zsh_config 6 #@untar:-J:{{downloads["zsh-5.9.tar.xz"]}}:. 7 {%- endblock %} 8 {% block at_script %} 9 build_env_static 10 cd zsh-5.9 11 autotools_config \ 12 --enable-static --disable-shared \ 13 --enable-libc-musl --disable-locale \ 14 --enable-cap \ 15 --enable-maildir-support \ 16 --enable-datadir="{{versions}}/$pthbs_package" \ 17 --enable-datarootdir="{{versions}}/$pthbs_package" \ 18 --enable-etcdir="{{versions}}/$pthbs_package/etc" \ 19 --enable-scriptdir="{{versions}}/$pthbs_package/zsh/scripts" \ 20 --enable-site-scriptdir="{{versions}}/$pthbs_package/zsh/site-scripts" \ 21 --enable-fndir="{{versions}}/$pthbs_package/zsh/functions" \ 22 --enable-site-fndir="{{versions}}/$pthbs_package/zsh/site-functions" \ 23 --enable-runhelpdir="{{versions}}/$pthbs_package/zsh/help" 24 25 sed -Ee '/name=zsh\/(files|stat|system|zselect|zutil|regex|net\/socket|net\/tcp) /s/link=[^ ]+/link=static/' -i config.modules 26 cat config.modules 27 28 {{make}} 29 30 cat Src/zshpaths.h 31 make DESTDIR="$pthbs_destdir" install 32 mv -v ../zsh_config/etc "$pthbs_destdir/{{versions}}/$pthbs_package/" 33 mv -v ../zsh_config/zsh-functions/* "$pthbs_destdir/{{versions}}/$pthbs_package/zsh/site-functions/" 34 check_static command/zsh 35 36 {% endblock %} 37 {% block genlinks_begin %} 38 x["./command/zsh"]=1 39 x["./man/man1/zsh.1"]=1 40 x["./man/man1/zshall.1"]=1 41 {% endblock %} 42 {% block rules %} 43 $2 == "zsh" { link($0); next } 44 {% endblock -%}