summaryrefslogtreecommitdiffstats
path: root/system/usbrelay
diff options
context:
space:
mode:
Diffstat (limited to 'system/usbrelay')
-rw-r--r--system/usbrelay/README3
-rw-r--r--system/usbrelay/usbrelay.SlackBuild18
-rw-r--r--system/usbrelay/usbrelay.info8
3 files changed, 20 insertions, 9 deletions
diff --git a/system/usbrelay/README b/system/usbrelay/README
index c7bd30e78d..723c6163a0 100644
--- a/system/usbrelay/README
+++ b/system/usbrelay/README
@@ -1 +1,2 @@
-Command line tool for 1,2,4 and 8 output usb relays based on HID compatible chips.
+Command line tool for 1, 2, 4 and 8 output USB relays based on HID
+compatible chips.
diff --git a/system/usbrelay/usbrelay.SlackBuild b/system/usbrelay/usbrelay.SlackBuild
index e57a8c8f76..1184d9360b 100644
--- a/system/usbrelay/usbrelay.SlackBuild
+++ b/system/usbrelay/usbrelay.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for usbrelay
@@ -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=usbrelay
-VERSION=${VERSION:-0.3}
+VERSION=${VERSION:-1.2.1}
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}
@@ -86,4 +96,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/system/usbrelay/usbrelay.info b/system/usbrelay/usbrelay.info
index c6447b97e7..2c67d87b9d 100644
--- a/system/usbrelay/usbrelay.info
+++ b/system/usbrelay/usbrelay.info
@@ -1,10 +1,10 @@
PRGNAM="usbrelay"
-VERSION="0.3"
+VERSION="1.2.1"
HOMEPAGE="https://github.com/darrylb123/usbrelay"
-DOWNLOAD="https://github.com/darrylb123/usbrelay/archive/v0.3/usbrelay-0.3.tar.gz"
-MD5SUM="7daec063f9ad565209c6c06ea5a98821"
+DOWNLOAD="https://github.com/darrylb123/usbrelay/archive/1.2.1/usbrelay-1.2.1.tar.gz"
+MD5SUM="1efbc56dba38782a885ef4745d0d8d40"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="hidapi"
MAINTAINER="Sebastian Arcus"
-EMAIL="s.arcus@open-t.co.uk"
+EMAIL="s [dot] arcus [at] open-t [dot] co [dot] uk"