summaryrefslogtreecommitdiffstats
path: root/network/dukto
diff options
context:
space:
mode:
Diffstat (limited to 'network/dukto')
-rw-r--r--network/dukto/dukto.SlackBuild16
-rw-r--r--network/dukto/dukto.info2
2 files changed, 14 insertions, 4 deletions
diff --git a/network/dukto/dukto.SlackBuild b/network/dukto/dukto.SlackBuild
index 73d57be48a..6019f6d5d6 100644
--- a/network/dukto/dukto.SlackBuild
+++ b/network/dukto/dukto.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for Dukto
@@ -22,10 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=dukto
VERSION=${VERSION:-6.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +38,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -77,4 +87,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/network/dukto/dukto.info b/network/dukto/dukto.info
index 34100745eb..08e62295db 100644
--- a/network/dukto/dukto.info
+++ b/network/dukto/dukto.info
@@ -5,6 +5,6 @@ DOWNLOAD="http://ponce.cc/slackware/sources/repo/dukto/dukto_6.0-1_i386.deb"
MD5SUM="2f71d86c9e90da470229107a0c5d6e67"
DOWNLOAD_x86_64="http://ponce.cc/slackware/sources/repo/dukto/dukto_6.0-1_amd64.deb"
MD5SUM_x86_64="f66aab0eb41887e0083f4645e2a85642"
-REQUIRES=""
+REQUIRES="qt4"
MAINTAINER="Andre Fernando"
EMAIL="ando344@gmail.com"