summaryrefslogtreecommitdiffstats
path: root/libraries/mujs/mujs.SlackBuild
diff options
context:
space:
mode:
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 61a22527d4..9cd6413963 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