summaryrefslogtreecommitdiff
path: root/development/casperjs/casperjs.SlackBuild
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2017-09-19 19:17:09 +1200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-11-04 07:17:45 +0700
commitff1c05df05b6535b191ee62c68cf7b6f01ffaf77 (patch)
tree424f46cd6125e5ea0dfbf85aec894d535566568e /development/casperjs/casperjs.SlackBuild
parent0dc8727ea57e0cc952ab8399046ca97e779b6013 (diff)
downloadslackbuilds-ff1c05df05b6535b191ee62c68cf7b6f01ffaf77.tar.gz
development/casperjs: Fix M5SUM and tarball handling.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/casperjs/casperjs.SlackBuild')
-rw-r--r--development/casperjs/casperjs.SlackBuild9
1 files changed, 5 insertions, 4 deletions
diff --git a/development/casperjs/casperjs.SlackBuild b/development/casperjs/casperjs.SlackBuild
index 12139aff35..3f9614b0e9 100644
--- a/development/casperjs/casperjs.SlackBuild
+++ b/development/casperjs/casperjs.SlackBuild
@@ -23,7 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=casperjs
-VERSION=${VERSION:-1.1beta3}
+SRCVERSION=${VERSION:-1.1-beta3}
+VERSION=$(echo "$SRCVERSION" | tr - _)
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
ARCH=noarch
@@ -52,9 +53,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf n1k0-$PRGNAM-4f105a9
-tar xvf $CWD/n1k0-$PRGNAM-1.1-beta3-0-g4f105a9.tar.gz
-cd n1k0-$PRGNAM-4f105a9
+rm -rf $PRGNAM-$SRCVERSION
+tar xvf $CWD/$PRGNAM-$SRCVERSION.tar.gz
+cd $PRGNAM-$SRCVERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \