summaryrefslogtreecommitdiff
path: root/development/casperjs
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
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')
-rw-r--r--development/casperjs/casperjs.SlackBuild9
-rw-r--r--development/casperjs/casperjs.info6
2 files changed, 8 insertions, 7 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 \
diff --git a/development/casperjs/casperjs.info b/development/casperjs/casperjs.info
index f27763cca4..6e35be8726 100644
--- a/development/casperjs/casperjs.info
+++ b/development/casperjs/casperjs.info
@@ -1,8 +1,8 @@
PRGNAM="casperjs"
-VERSION="1.1beta3"
+VERSION="1.1_beta3"
HOMEPAGE="http://casperjs.org/"
-DOWNLOAD="https://github.com/n1k0/casperjs/tarball/1.1-beta3/n1k0-casperjs-1.1-beta3-0-g4f105a9.tar.gz"
-MD5SUM="4a4858917a2ef4f8274ae86032694568"
+DOWNLOAD="https://github.com/casperjs/casperjs/archive/1.1-beta3/casperjs-1.1-beta3.tar.gz"
+MD5SUM="552db60dbdedd185f1bd6bc83ab2c816"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="phantomjs"