From 45fb27586c4cba72d6e070f8426244ad11aef184 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Mon, 21 Nov 2022 19:26:45 +0700 Subject: [PATCH] python3-xapp: Switch to meson. Signed-off-by: Willy Sudiarto Raharjo --- python3-xapp/python3-xapp.SlackBuild | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/python3-xapp/python3-xapp.SlackBuild b/python3-xapp/python3-xapp.SlackBuild index f6242a2..d013c23 100644 --- a/python3-xapp/python3-xapp.SlackBuild +++ b/python3-xapp/python3-xapp.SlackBuild @@ -50,7 +50,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 {} \; -python3 setup.py install --root=$PKG +mkdir build +cd build + CFLAGS="$SLKCFLAGS" \ + CXXFLAGS="$SLKCFLAGS" \ + meson .. \ + --buildtype=release \ + --infodir=/usr/info \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --localstatedir=/var \ + --mandir=/usr/man \ + --prefix=/usr \ + --sysconfdir=/etc \ + -Dstrip=true + "${NINJA:=ninja}" + DESTDIR=$PKG $NINJA install +cd .. 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