summaryrefslogtreecommitdiffstats
path: root/desktop/x2x
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/x2x')
-rw-r--r--desktop/x2x/x2x.SlackBuild15
-rw-r--r--desktop/x2x/x2x.info2
2 files changed, 12 insertions, 5 deletions
diff --git a/desktop/x2x/x2x.SlackBuild b/desktop/x2x/x2x.SlackBuild
index 81f4a0b7ca..76d4a94e73 100644
--- a/desktop/x2x/x2x.SlackBuild
+++ b/desktop/x2x/x2x.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for x2x
-# Written by B. Watson (yalhcru@gmail.com)
+# Written by B. Watson (urchlay@slackware.uk)
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
@@ -10,10 +10,13 @@
# was 1.30-beta, which got imported into a github repo by the current
# upstream, who has made some changes but not yet done a release.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=x2x
VERSION=${VERSION:-1.30_beta+20200121_ec10215}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -23,7 +26,11 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+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}
@@ -76,4 +83,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/desktop/x2x/x2x.info b/desktop/x2x/x2x.info
index 86344e9254..ec3f32d612 100644
--- a/desktop/x2x/x2x.info
+++ b/desktop/x2x/x2x.info
@@ -7,4 +7,4 @@ DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="B. Watson"
-EMAIL="yalhcru@gmail.com"
+EMAIL="urchlay@slackware.uk"