aboutsummaryrefslogtreecommitdiff
path: root/downtube/downtube.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'downtube/downtube.SlackBuild')
-rwxr-xr-xdowntube/downtube.SlackBuild28
1 files changed, 28 insertions, 0 deletions
diff --git a/downtube/downtube.SlackBuild b/downtube/downtube.SlackBuild
new file mode 100755
index 00000000..012f1c7d
--- /dev/null
+++ b/downtube/downtube.SlackBuild
@@ -0,0 +1,28 @@
+#!/bin/bash
+#
+# SlackBuild script to call downtube.build with correct settings
+#
+
+CWD="`pwd`"
+
+if [ -f "/etc/slackbuildrc" ]; then
+ source /etc/slackbuildrc
+fi
+
+if [ -f "~/.slackbuildrc" ]; then
+ source ~/.slackbuildrc
+fi
+
+# default settings
+PACKAGE="downtube"
+VERSION=${VERSION:=1.2}
+ARCH="noarch"
+BUILD=${BUILD:=1rha}
+SRC_DIR=${SRC:=$CWD}
+TMP=${TMP:=/tmp}
+
+rm -rf $TMP/$PACKAGE
+mkdir -p $SRC_DIR/$PACKAGE $TMP/$PACKAGE
+
+slacktrack -x $TMP,$SRC_DIR,/dev -jefkzp "$PACKAGE-$VERSION-$ARCH-$BUILD.tgz" "./$PACKAGE.build"
+