aboutsummaryrefslogtreecommitdiff
path: root/network/luakit/luakit.SlackBuild
diff options
context:
space:
mode:
authorMarek Srejma <sam_web@yahoo.de>2020-10-30 04:12:59 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-10-31 11:15:25 +0700
commit35c8dd7cd0e2ac2c6040274964b3951d14ea1275 (patch)
tree9ae89062b4a4cd4187217238d5696a9eff78f8ab /network/luakit/luakit.SlackBuild
parent8d4330fb20cc544ebf9adff7b33b5e8b359f2a4f (diff)
network/luakit: Updated for version 2.2.1.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/luakit/luakit.SlackBuild')
-rw-r--r--network/luakit/luakit.SlackBuild32
1 files changed, 16 insertions, 16 deletions
diff --git a/network/luakit/luakit.SlackBuild b/network/luakit/luakit.SlackBuild
index 7a0981a59b6b..20fea6d96d2c 100644
--- a/network/luakit/luakit.SlackBuild
+++ b/network/luakit/luakit.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for luakit
# Copyright 2013, Andrew Tkalia <anddt@yandex.ru>, Ukraine, Kyiv
-# Update 2018-06-30 by Marek Srejma <sam_web@yahoo.de>
+# Update 2018-06-30 and 2020-10-26 by Marek Srejma <sam_web@yahoo.de>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=luakit
-VERSION=${VERSION:-2.0}
+VERSION=${VERSION:-2.2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
LUAJIT=${LUAJIT:-0} # 0 or 1
@@ -45,10 +45,13 @@ OUTPUT=${OUTPUT:-/tmp}
if egrep -qo "^i[2-6]86$" <<<"$ARCH"; then
SLKCFLAGS="-O2 -march=$ARCH -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e
@@ -56,9 +59,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-debian-$VERSION
-tar xvf $CWD/$PRGNAM-debian-$VERSION.tar.gz
-cd $PRGNAM-debian-$VERSION
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -66,25 +69,22 @@ 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 {} \;
+sed -e 's#(PREFIX)/lib/luakit#(LIBDIR)#g' -i Makefile
+
_CFLAGS=`grep CFLAGS config.mk | sed -e "s/CFLAGS\s*+=//g" | tr "\n" " "`
-make \
+make install \
+ CFLAGS="$_CFLAGS $SLKCFLAGS" \
PREFIX=/usr \
+ LIBDIR=/usr/lib$LIBDIRSUFFIX/$PRGNAM \
MANPREFIX=/usr/man \
DOCDIR=/usr/doc/$PRGNAM-$VERSION \
DEVELOPMENT_PATHS=0 \
- CFLAGS="$_CFLAGS $SLKCFLAGS" \
LUA_BIN_NAME=lua \
LUA_PKG_NAME=lua \
USE_LUAJIT=$LUAJIT \
- CC=$CC
-
-make install \
- DESTDIR=$PKG \
- PREFIX=/usr \
- MANPREFIX=$PKG/usr/man \
- DOCDIR=$PKG/usr/doc/$PRGNAM-$VERSION \
- LUA_BIN_NAME=lua \
- LUA_PKG_NAME=lua
+ CC=$CC \
+ VERSION=$VERSION \
+ DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true