diff options
Diffstat (limited to 'network/luakit/luakit.SlackBuild')
-rw-r--r-- | network/luakit/luakit.SlackBuild | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/network/luakit/luakit.SlackBuild b/network/luakit/luakit.SlackBuild index a059e0b6b4..e36c76ab38 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 -# Updates 2018-2022 by Marek Šrejma <marek@modweb.de>, Germany +# Updates 2018-2024 by Marek Šrejma <marek@modweb.de>, Germany # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=luakit -VERSION=${VERSION:-2.3} +VERSION=${VERSION:-2.3.6} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -41,9 +41,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -53,10 +50,10 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" +if [ "$ARCH" = "i586" ] || [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=$ARCH -mtune=i686" LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then +elif [ "$ARCH" = "x86_64" ] || [ "$ARCH" = "aarch64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" else @@ -80,6 +77,8 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; sed -e 's#(PREFIX)/lib/luakit#(LIBDIR)#g' -i Makefile +sed -e "/^Exec=/ s/lua/env Malloc=1 lua/" -i extras/luakit.desktop +patch -p1 < $CWD/gtk.patch _CFLAGS=`grep CFLAGS config.mk | sed -e "s/CFLAGS\s*+=//g" | tr "\n" " "` make install \ @@ -103,9 +102,8 @@ find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS CHANGELOG.md \ - CONTRIBUTING.md COPYING.GPLv3 \ - README.md $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS CHANGELOG.md CONTRIBUTING.md COPYING.GPLv3 README.md MIGRATE.md \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |