diff options
author | Marek Srejma <sam_web@yahoo.de> | 2020-10-30 04:12:59 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-10-31 11:15:25 +0700 |
commit | 35c8dd7cd0e2ac2c6040274964b3951d14ea1275 (patch) | |
tree | 9ae89062b4a4cd4187217238d5696a9eff78f8ab /network/luakit | |
parent | 8d4330fb20cc544ebf9adff7b33b5e8b359f2a4f (diff) | |
download | slackbuilds-35c8dd7cd0e2ac2c6040274964b3951d14ea1275.tar.gz |
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')
-rw-r--r-- | network/luakit/luakit.SlackBuild | 32 | ||||
-rw-r--r-- | network/luakit/luakit.info | 6 |
2 files changed, 19 insertions, 19 deletions
diff --git a/network/luakit/luakit.SlackBuild b/network/luakit/luakit.SlackBuild index 7a0981a59b..20fea6d96d 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 diff --git a/network/luakit/luakit.info b/network/luakit/luakit.info index 2b0eabac90..2f3150278d 100644 --- a/network/luakit/luakit.info +++ b/network/luakit/luakit.info @@ -1,8 +1,8 @@ PRGNAM="luakit" -VERSION="2.0" +VERSION="2.2.1" HOMEPAGE="https://github.com/luakit/luakit" -DOWNLOAD="https://github.com/luakit/luakit/archive/debian/2.0/luakit-debian-2.0.tar.gz" -MD5SUM="2f5ab83a7835db482220b2279351e23c" +DOWNLOAD="https://github.com/luakit/luakit/archive/2.2.1/luakit-2.2.1.tar.gz" +MD5SUM="c9f32f06b54fae18e567fb330250bb36" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="webkit2gtk lua-filesystem" |