aboutsummaryrefslogtreecommitdiff
path: root/trunk/src/createpkg
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src/createpkg')
-rw-r--r--trunk/src/createpkg11
1 files changed, 8 insertions, 3 deletions
diff --git a/trunk/src/createpkg b/trunk/src/createpkg
index 5b303fe..4af0d55 100644
--- a/trunk/src/createpkg
+++ b/trunk/src/createpkg
@@ -31,7 +31,7 @@
# Createpkg functions
#---------------------------------------------------
-CREATEPKG_VERSION="1.1.2"
+CREATEPKG_VERSION="1.1.3"
function error_codes {
@@ -498,8 +498,13 @@ PKG_NAME="`ls -1 -c $MAKEPKG_REPOS/$PACKAGE-*-*-*.tgz | head -n 1 | xargs basena
# Remove old packages from repository tree
[ $REMOVE_OLD_PACKAGE -eq $on ] && rm $NEW_REPOS/$PACKAGE-*-*-*.tgz 2>/dev/null
-# Move package to SlackBuilds-like tree
-[ $MOVE_BIN_PACKAGE -eq $on ] && mv $MAKEPKG_REPOS/$PKG_NAME $NEW_REPOS/
+# Move package and slack-required to SlackBuilds-like tree
+if [ $MOVE_BIN_PACKAGE -eq $on ] then
+ mv $MAKEPKG_REPOS/$PKG_NAME $NEW_REPOS/
+ [ ! -z "$SLACK_REQUIRED" ] && cp $SLACK_REQUIRED $NEW_REPOS/$PKG_NAME.slack-required
+else
+ [ ! -z "$SLACK_REQUIRED" ] && cp $SLACK_REQUIRED $MAKEPKG_REPOS/$PKG_NAME.slack-required
+fi
# Install package
if [ "$INSTALL" -eq $on ]; then