summaryrefslogtreecommitdiffstats
path: root/audio/vimpc
diff options
context:
space:
mode:
Diffstat (limited to 'audio/vimpc')
-rw-r--r--audio/vimpc/vimpc.SlackBuild18
-rw-r--r--audio/vimpc/vimpc.info2
2 files changed, 15 insertions, 5 deletions
diff --git a/audio/vimpc/vimpc.SlackBuild b/audio/vimpc/vimpc.SlackBuild
index 4ed652fef1..abcaebd7fa 100644
--- a/audio/vimpc/vimpc.SlackBuild
+++ b/audio/vimpc/vimpc.SlackBuild
@@ -1,13 +1,16 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for vimpc
-# Written by Jostein Berntsen <jbernts@broadpark.no>
+# Written by Jostein Berntsen <jvbernts@online.no>
+
+cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=vimpc
VERSION=${VERSION:-0.09.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -17,7 +20,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}
@@ -78,4 +88,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
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/audio/vimpc/vimpc.info b/audio/vimpc/vimpc.info
index 45b2e7cdae..e210b1a6c5 100644
--- a/audio/vimpc/vimpc.info
+++ b/audio/vimpc/vimpc.info
@@ -7,4 +7,4 @@ DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="libmpdclient"
MAINTAINER="Jostein Berntsen"
-EMAIL="jbernts@broadpark.no"
+EMAIL="jvbernts@online.no"