diff options
Diffstat (limited to 'trunk/mkbuild/generic.mkSlackBuild')
-rw-r--r-- | trunk/mkbuild/generic.mkSlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/trunk/mkbuild/generic.mkSlackBuild b/trunk/mkbuild/generic.mkSlackBuild index 2f1bf99..c889fde 100644 --- a/trunk/mkbuild/generic.mkSlackBuild +++ b/trunk/mkbuild/generic.mkSlackBuild @@ -383,6 +383,7 @@ done <postinstall_script> off # Add a post-installation script (doinst.sh) +mkdir -p "$PKG/install" || exit $ERROR_MKDIR cat << EOSCRIPT > "$PKG/install/doinst.sh" config() { NEW="\$1" @@ -425,6 +426,14 @@ mkuser() { EOSCRIPT </postinstall_script> +<slack_required> off +# Copy slack-required +mkdir -p "$PKG/install" || exit $ERROR_MKDIR +if [ -f "$CWD/slack-required" ]; then + cp $CWD/slack-required $PKG/install +fi +</slack_required> + <build_package> off # Build the package cd "$PKG" @@ -433,7 +442,7 @@ makepkg -l y -c n "$REPOS/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERRO <clean_builds> off # Delete source and build directories if requested -if [ "$CLEANUP" == "yes" ]; then +if [ "$CLEANUP" == "yes" ] || [ "$1" = "--cleanup" ]; then rm -rf "$PKG_WORK" "$PKG" fi </clean_builds> |