scriptsetup (897B)
1 {% extends "genlinks" %} 2 {%- block script %} 3 #+{{pkg_install_name("busybox")}} 4 #+{{pkg_install_name("zsh")}} 5 #+{{pkg_install_name("pthbs-banginstall")}} 6 {%- block extra_deps %} 7 {%- endblock %} 8 #@git:{{submodule.current[name]}}:{{name}} 9 10 : ${JOBS:=1} 11 prefix={{versions}}/$pthbs_package 12 pkgdir="$pthbs_destdir/$prefix" 13 mkdir -p "$pkgdir/" 14 cd '{{name}}' 15 16 for d in bin sbin command; do 17 if test -d "$d"; then 18 pthbs-banginstall "$d"/* "$pkgdir" 19 fi 20 done 21 22 if test -d vim; then 23 mkdir -p "$pkgdir/vimfiles/pack/plugins/start" 24 mv -v vim "$pkgdir/vimfiles/pack/plugins/start/$pthbs_package" 25 fi 26 27 if test -d zsh-functions; then 28 mkdir -p "$pkgdir/zsh" 29 mv -v zsh-functions "$pkgdir/zsh/site-functions" 30 fi 31 32 {%- block extra_script %} 33 {%- endblock %} 34 {% endblock %} 35 {% block rules %} 36 {%- block extra_rules %} 37 {%- endblock %} 38 $2 == "zsh" { link($0); next } 39 $2 == "vimfiles" { link($0); next } 40 {% endblock -%}