diff options
author | xaizek <xaizek@posteo.net> | 2023-01-12 19:57:28 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-01-14 08:50:07 +0700 |
commit | c7c8b66101a7ade79520d5e395c554871c13c109 (patch) | |
tree | e276d26a83779e89991215a406171c23dcf7b960 /development/xmake/xmake.SlackBuild | |
parent | 55ef36a202da5e008d74a01c62f3a96daaa182c8 (diff) |
development/xmake: Updated for version 2.7.5.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/xmake/xmake.SlackBuild')
-rw-r--r-- | development/xmake/xmake.SlackBuild | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/development/xmake/xmake.SlackBuild b/development/xmake/xmake.SlackBuild index 0a35baa6cc79..72b59f15a7af 100644 --- a/development/xmake/xmake.SlackBuild +++ b/development/xmake/xmake.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=xmake -VERSION=${VERSION:-2.7.4} +VERSION=${VERSION:-2.7.5} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -70,9 +70,8 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -mkdir $PRGNAM-$VERSION -cd $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-v$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 \ @@ -80,9 +79,20 @@ 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 CFLAGS="$SLKCFLAGS" \ - build +# Upstream dropped Makefiles in v2.7.5 and their alternative in the form of +# xmake.sh fails to detect presence of lua correctly, this is a workaround. +sed -i '/^option "lua"/,/^option_end/d' core/xmake.sh +sed -i '/^option "luajit"/,/^option_end/d' core/xmake.sh + +CFLAGS="$SLKCFLAGS" \ +./configure --generator=gmake \ + --mode=release \ + --toolchain=gcc \ + --prefix=/usr \ + --libdir="lib$LIBDIRSUFFIX" \ + --runtime=lua +make make PREFIX=/usr \ DESTDIR="$PKG" \ install |