aboutsummaryrefslogtreecommitdiff
path: root/system/yelp/yelp.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/yelp/yelp.SlackBuild')
-rw-r--r--system/yelp/yelp.SlackBuild48
1 files changed, 27 insertions, 21 deletions
diff --git a/system/yelp/yelp.SlackBuild b/system/yelp/yelp.SlackBuild
index 9fa5cadab7..f1bdedeea0 100644
--- a/system/yelp/yelp.SlackBuild
+++ b/system/yelp/yelp.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for yelp
-# Copyright 2014-2024 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
+# Copyright 2014-2025 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,8 +25,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=yelp
-VERSION=${VERSION:-42.2}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-42.3}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -76,27 +76,33 @@ 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 {} \;
-WKIT2="4-0" #handle either webkit2gtk or webkit2gtk4.1
+WKIT2="" #handle either webkit2gtk or webkit2gtk4.1
if $(pkg-config --exists webkit2gtk-4.1); then
- WKIT2="4-1"
+ WKIT2="webkit2gtk-4-0=false"
+elif $(pkg-config --exists webkit2gtk-4.0); then
+ WKIT2="webkit2gtk-4-0=true"
fi
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --enable-static=no \
- --disable-schemas-compile \
- --with-webkit2gtk-$WKIT2 \
- --build=$ARCH-slackware-linux
-
-make
-make install DESTDIR=$PKG
+PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
+export PYTHONPATH=/opt/python$PYVER/site-packages
+
+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 \
+ -D$WKIT2 \
+ -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