aboutsummaryrefslogtreecommitdiff
path: root/libraries/mujs/mujs.SlackBuild
diff options
context:
space:
mode:
authorChristoph Willing <chris.willing@linux.com>2020-06-23 09:16:08 +1000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-06-28 08:17:01 +0700
commit26ee419c3cde9c31a98ca0855c1ce3cd336337f9 (patch)
tree83f9c19d7715041b0238a7ced3eec1f3ad944e72 /libraries/mujs/mujs.SlackBuild
parent00e976dad64eaf617c3889ea408a089e163d98ad (diff)
libraries/mujs: Updated for version 1.0.7 & new maintainer
Signed-off-by: Christoph Willing <chris.willing@linux.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/mujs/mujs.SlackBuild')
-rw-r--r--libraries/mujs/mujs.SlackBuild12
1 files changed, 9 insertions, 3 deletions
diff --git a/libraries/mujs/mujs.SlackBuild b/libraries/mujs/mujs.SlackBuild
index 61a22527d4546..9cd6413963b9e 100644
--- a/libraries/mujs/mujs.SlackBuild
+++ b/libraries/mujs/mujs.SlackBuild
@@ -3,6 +3,9 @@
# Slackware build script for mujs
# Written by Valerio Talora <navigare@gmx.com>
+# Copyright (c) 2018 (versions 1.0.3-1.0.5) Andreas Guldstrand
+# Copyright (c) 2020 Christoph Willing, Brisbane, Australia
+# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
@@ -22,7 +25,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=mujs
-VERSION=${VERSION:-1.0.5}
+VERSION=${VERSION:-1.0.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -62,6 +65,7 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
cd $PRGNAM-$VERSION
+sed -i -e '/LIBREADLINE +=/ s/$/ -ltermcap/' Makefile
chown -R root:root .
find -L . \
@@ -70,8 +74,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-make LDFLAGS=-ltermcap
-make prefix=/usr libdir=/usr/lib${LIBDIRSUFFIX} install DESTDIR=$PKG
+make shared && make install-shared \
+ prefix=/usr \
+ libdir=/usr/lib${LIBDIRSUFFIX} \
+ DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING README docs $PKG/usr/doc/$PRGNAM-$VERSION