aboutsummaryrefslogtreecommitdiff
path: root/sci/mathematics/octave/octave.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'sci/mathematics/octave/octave.SlackBuild')
-rw-r--r--sci/mathematics/octave/octave.SlackBuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/sci/mathematics/octave/octave.SlackBuild b/sci/mathematics/octave/octave.SlackBuild
index eb25c614..53f3feac 100644
--- a/sci/mathematics/octave/octave.SlackBuild
+++ b/sci/mathematics/octave/octave.SlackBuild
@@ -143,11 +143,17 @@ octave:
octave:
EODESC
+# Copy slack-required
+mkdir -p "$PKG/install" || exit $ERROR_MKDIR
+if [ -f "$CWD/slack-required" ]; then
+ cp $CWD/slack-required $PKG/install
+fi
+
# Build the package
cd "$PKG"
makepkg -l y -c n "$REPOS/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERROR_MKPKG
# Delete source and build directories if requested
-if [ "$CLEANUP" == "yes" ]; then
+if [ "$CLEANUP" == "yes" ] || [ "$1" = "--cleanup" ]; then
rm -rf "$PKG_WORK" "$PKG"
fi