aboutsummaryrefslogtreecommitdiff
path: root/development/checkbashisms/checkbashisms.SlackBuild
diff options
context:
space:
mode:
authorDavid Spencer <idlemoor@slackbuilds.org>2016-01-13 00:11:36 +0000
committerRobby Workman <rworkman@slackbuilds.org>2016-01-12 21:57:56 -0600
commit2225948be361e06dbfadf8379962df9e21961371 (patch)
treefef6a019fb28ddb29045829a7fc23883c601f120 /development/checkbashisms/checkbashisms.SlackBuild
parent4d5eeb9860cb8602f4467a3ca287b401805b2b7f (diff)
development/checkbashisms: Support alternate download names.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'development/checkbashisms/checkbashisms.SlackBuild')
-rw-r--r--development/checkbashisms/checkbashisms.SlackBuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/development/checkbashisms/checkbashisms.SlackBuild b/development/checkbashisms/checkbashisms.SlackBuild
index 0850d29cfacd6..70911367fd132 100644
--- a/development/checkbashisms/checkbashisms.SlackBuild
+++ b/development/checkbashisms/checkbashisms.SlackBuild
@@ -41,9 +41,13 @@ mkdir -p $TMP $PKG $OUTPUT
cd $PKG
mkdir -p $PKG/usr/bin
-install -m 0755 "$CWD/$PRGNAM.pl?id=$REV" $PKG/usr/bin/$PRGNAM
+install -m 0755 "$CWD/$PRGNAM.pl?id=$REV" $PKG/usr/bin/$PRGNAM || \
+ install -m 0755 "$CWD/$PRGNAM.pl" $PKG/usr/bin/$PRGNAM
+
mkdir -p $PKG/usr/man/man1
-cat "$CWD/$PRGNAM.1?id=$REV" | gzip -9c > $PKG/usr/man/man1/$PRGNAM.1.gz
+cat "$CWD/$PRGNAM.1?id=$REV" > $PKG/usr/man/man1/$PRGNAM.1 || \
+ cat "$CWD/$PRGNAM.1" > $PKG/usr/man/man1/$PRGNAM.1
+gzip -9 $PKG/usr/man/man1/$PRGNAM.1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild