summaryrefslogtreecommitdiffstats
path: root/perl/perl-WebService-Gyazo-B
diff options
context:
space:
mode:
Diffstat (limited to 'perl/perl-WebService-Gyazo-B')
-rw-r--r--perl/perl-WebService-Gyazo-B/perl-WebService-Gyazo-B.SlackBuild16
-rw-r--r--perl/perl-WebService-Gyazo-B/perl-WebService-Gyazo-B.info2
2 files changed, 14 insertions, 4 deletions
diff --git a/perl/perl-WebService-Gyazo-B/perl-WebService-Gyazo-B.SlackBuild b/perl/perl-WebService-Gyazo-B/perl-WebService-Gyazo-B.SlackBuild
index d45e106f0a..ffb1a98c2e 100644
--- a/perl/perl-WebService-Gyazo-B/perl-WebService-Gyazo-B.SlackBuild
+++ b/perl/perl-WebService-Gyazo-B/perl-WebService-Gyazo-B.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for perl-WebService-Gyazo-B
@@ -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=perl-WebService-Gyazo-B
VERSION=${VERSION:-0.0405}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
SRCNAM="$(printf $PRGNAM | cut -d- -f2-)"
@@ -37,7 +40,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}
@@ -101,4 +111,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/perl/perl-WebService-Gyazo-B/perl-WebService-Gyazo-B.info b/perl/perl-WebService-Gyazo-B/perl-WebService-Gyazo-B.info
index da88d96ee1..55282ed469 100644
--- a/perl/perl-WebService-Gyazo-B/perl-WebService-Gyazo-B.info
+++ b/perl/perl-WebService-Gyazo-B/perl-WebService-Gyazo-B.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/WebService-Gyazo-B-0
MD5SUM="a3d2563d78d484d0a026751a43703f53"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="perl-Module-Build perl-Test-Pod perl-Test-Pod-Coverage perl-http-message libwww-perl perl-LWP-Protocol-https perl-LWP-Protocol-socks perl-URI-Simple"
+REQUIRES="perl-Module-Build perl-Test-Pod perl-Test-Pod-Coverage perl-LWP-Protocol-socks perl-URI-Simple"
MAINTAINER="Donald Cooley"
EMAIL="chytraeu@sdf.org"