From d4c940d4f73941e66e3f6d6bb957c933fd758bef Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Mon, 14 Feb 2022 13:40:11 +0700 Subject: [PATCH] atril: Fix missing check with webkit 4.0 API. Signed-off-by: Willy Sudiarto Raharjo --- extra/atril/atril.SlackBuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/extra/atril/atril.SlackBuild b/extra/atril/atril.SlackBuild index 33cf197..c2a6317 100644 --- a/extra/atril/atril.SlackBuild +++ b/extra/atril/atril.SlackBuild @@ -72,6 +72,7 @@ else webkit=`pkg-config --exists webkit2gtk-4.1` if [ "$?" -eq 0 ]; then epub="--enable-epub" + API4.1=yes else epub="--disable-epub" fi @@ -92,7 +93,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 {} \; -sed -i "s|webkit2gtk-4.0|webkit2gtk-4.1|g" configure.ac +if [ "$API4.1" == "yes" ]; then + sed -i "s|webkit2gtk-4.0|webkit2gtk-4.1|g" configure.ac +fi + autoreconf -fiv CFLAGS="$SLKCFLAGS" \