summaryrefslogtreecommitdiffstats
path: root/development/xmake
diff options
context:
space:
mode:
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
commitc7c8b66101a7ade79520d5e395c554871c13c109 (patch)
treee276d26a83779e89991215a406171c23dcf7b960 /development/xmake
parent55ef36a202da5e008d74a01c62f3a96daaa182c8 (diff)
downloadslackbuilds-c7c8b66101a7ade79520d5e395c554871c13c109.tar.gz
slackbuilds-c7c8b66101a7ade79520d5e395c554871c13c109.tar.xz
development/xmake: Updated for version 2.7.5.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/xmake')
-rw-r--r--development/xmake/xmake.SlackBuild20
-rw-r--r--development/xmake/xmake.info6
2 files changed, 18 insertions, 8 deletions
diff --git a/development/xmake/xmake.SlackBuild b/development/xmake/xmake.SlackBuild
index 0a35baa6cc..72b59f15a7 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
diff --git a/development/xmake/xmake.info b/development/xmake/xmake.info
index 9c0a7cd47f..91aa2a03e6 100644
--- a/development/xmake/xmake.info
+++ b/development/xmake/xmake.info
@@ -1,8 +1,8 @@
PRGNAM="xmake"
-VERSION="2.7.4"
+VERSION="2.7.5"
HOMEPAGE="https://xmake.io/"
-DOWNLOAD="https://github.com/xmake-io/xmake/releases/download/v2.7.4/xmake-v2.7.4.tar.gz"
-MD5SUM="1c2ba69f2bc905d617b900fafaa3fc8f"
+DOWNLOAD="https://github.com/xmake-io/xmake/releases/download/v2.7.5/xmake-v2.7.5.tar.gz"
+MD5SUM="64889ce2007c4090c611dbf21ccc84cc"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""