From 22e72d94cfc947561550d5e1cb48f479efee9218 Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 24 Jul 2024 15:20:48 +0100 Subject: [PATCH] Update yelp.SlackBuild add support for webkit2gtk4.1 use webkit2gtk4.1 if it is installed instead of webket2gtk4.0. --- system/yelp/yelp.SlackBuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/system/yelp/yelp.SlackBuild b/system/yelp/yelp.SlackBuild index f12b8946e58..9ab81e30c75 100644 --- a/system/yelp/yelp.SlackBuild +++ b/system/yelp/yelp.SlackBuild @@ -76,6 +76,10 @@ 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 +if $(pkg-config --exists webkit2gtk-4.1); then + WKIT2="4-1" +fi CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -87,7 +91,7 @@ CXXFLAGS="$SLKCFLAGS" \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --enable-static=no \ --disable-schemas-compile \ - --with-webkit2gtk-4-0 \ + --with-webkit2gtk-$WKIT2 \ --build=$ARCH-slackware-linux make