From e063ca0c27e120c24479b927b573f70ae7712528 Mon Sep 17 00:00:00 2001 From: rhatto Date: Fri, 26 Dec 2008 16:11:57 +0000 Subject: minor changes git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@719 04377dda-e619-0410-9926-eae83683ac58 --- trunk/doc/CHANGELOG | 4 ++-- trunk/mkbuild/kde4.mkSlackBuild | 10 +++++++++- trunk/src/mkbuild | 2 +- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/trunk/doc/CHANGELOG b/trunk/doc/CHANGELOG index 391b011..744ee03 100644 --- a/trunk/doc/CHANGELOG +++ b/trunk/doc/CHANGELOG @@ -36,9 +36,9 @@ simplepkg changelog - some svn check routines extended for git - perl.mkSlackBuild - added sections copy_init_scripts and copy_config_files - - generic.mkSlackBuild and per.mkSlackBuild + - generic.mkSlackBuild, perl.mkSlackBuild and kde4.mkSlackBuild - clean_builds now compliant with standard --cleanup behaviour - - new section slack-required + - new section slack-required, download_patches, manifest_check - generic.mkSlackBuild: - config() on postinstall_script now accepting .dist and .sample config file extensions - added git_source section diff --git a/trunk/mkbuild/kde4.mkSlackBuild b/trunk/mkbuild/kde4.mkSlackBuild index 5211bda..0e34547 100644 --- a/trunk/mkbuild/kde4.mkSlackBuild +++ b/trunk/mkbuild/kde4.mkSlackBuild @@ -487,6 +487,14 @@ mkuser() { EOSCRIPT + off +# Copy slack-required +mkdir -p "$PKG/install" || exit $ERROR_MKDIR +if [ -f "$CWD/slack-required" ]; then + cp $CWD/slack-required $PKG/install +fi + + off # Build the package cd "$PKG" @@ -495,7 +503,7 @@ makepkg -l y -c n "$REPOS/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERRO off # Delete source and build directories if requested -if [ "$CLEANUP" == "yes" ]; then +if [ "$CLEANUP" == "yes" ] || [ "$1" = "--cleanup" ]; then rm -rf "$PKG_WORK" "$PKG" fi diff --git a/trunk/src/mkbuild b/trunk/src/mkbuild index 8917974..73cc144 100755 --- a/trunk/src/mkbuild +++ b/trunk/src/mkbuild @@ -857,7 +857,7 @@ function edit_manifest { # Update patches for i in `find $WORK | grep -E '(.diff$|.diff.gz$|.diff.bz2$|.patch$|.patch.gz$|.patch.bz2$)\*{0,1}$'`; do - if [ ! -d "$WORK/$i" ]; then + if [ ! -d "$WORK/$i" ] && ! grep -q -e "^PATCH `basename $i` " $WORK/Manifest; then update_manifest_info $i patch fi done -- cgit v1.2.3