2 # builds the Archlinux .install script for a package
3 # if a <package>.(pre_|post_)(install|upgrade|remove) file exists, use it directly
4 # if a <package>.p file exists, use the corresponding utility .funcs
5 # adding the <package>.(pre_|post_)(install|upgrade|remove).extra if they exist
9 local pkgpath
="${srcdir}"/package
/debian
11 for j
in install upgrade remove
16 if test -r $pkgpath/"$1".
"$s" # specific install script
20 sed -e 's/^/ /' $pkgpath/"$1".
"$s"
24 elif test -r $pkgpath/"$1".p
# bundle-based install
26 if test -r $pkgpath/"$s".funcs
30 if >/dev
/null
expr "$1" : "nosh-run-"
32 echo " nosh_run_package=YES"
35 sed -e 's/^/ /' $pkgpath/"$s".funcs
37 if test -r $pkgpath/"$1".
"$s".extra
# additional instructions
39 sed -e 's/^/ /' $pkgpath/"$1".
"$s".extra
42 sed -e 's/^/ /' $pkgpath/"$1".p