2 # builds the Archlinux .install script for a package, argument $1 is the package name
3 # if a <package>.p file exists, use the corresponding utility .funcs
4 # if a <package>.(pre_|post_)(install|upgrade|remove).extra exists, add it or use it standalone
8 local pkgpath
="${srcdir}"/package
/debian
10 for j
in install upgrade remove
15 if test -r $pkgpath/"$1".p
# bundle-based install
18 if >/dev
/null
expr "$1" : "nosh-run-"
20 printf " nosh_run_package=YES\n"
22 sed -e 's/^/ /' $pkgpath/"$s".funcs
# all combinations are present
24 sed -e 's/^/ /' $pkgpath/"$1".p
25 if test -r $pkgpath/"$1".
"$s".extra
# additional instructions
27 sed -e 's/^/ /' $pkgpath/"$1".
"$s".extra
30 else # no bundle, only extra scripting
31 if test -r $pkgpath/"$1".
"$s".extra
34 sed -e 's/^/ /' $pkgpath/"$1".
"$s".extra