diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-11-27 13:07:55 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2008-11-27 13:07:55 +0000 |
commit | c110049805e03798f335970c9543a567c58de4e7 (patch) | |
tree | 12769066615fa4d528442f1da7a3182700b88fff /trunk/mkbuild/generic.mkSlackBuild | |
parent | 394279527b22e2747353ee23c8ce7f3f2aa1fff2 (diff) | |
download | simplepkg-c110049805e03798f335970c9543a567c58de4e7.tar.gz simplepkg-c110049805e03798f335970c9543a567c58de4e7.tar.bz2 |
see CHANGELOG for details
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@543 04377dda-e619-0410-9926-eae83683ac58
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> |