From 918886cfda0469fe0138df50675409b67be36c08 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Sat, 5 Feb 2022 23:00:32 +0700 Subject: [PATCH] atril: Support both Webkit2gtk API 4.0 and 4.1. Signed-off-by: Willy Sudiarto Raharjo --- extra/atril/atril.SlackBuild | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/extra/atril/atril.SlackBuild b/extra/atril/atril.SlackBuild index 6ecff49..33cf197 100644 --- a/extra/atril/atril.SlackBuild +++ b/extra/atril/atril.SlackBuild @@ -63,12 +63,18 @@ else LIBDIRSUFFIX="" fi -# check webkitgtk existence -webkit=`pkg-config --exists webkit2gtk-4.1` +# check webkit2gtk 4.0 API existence +webkit=`pkg-config --exists webkit2gtk-4.0` if [ "$?" -eq 0 ]; then epub="--enable-epub" else - epub="--disable-epub" + # check webkit2gtk 4.1 API existence + webkit=`pkg-config --exists webkit2gtk-4.1` + if [ "$?" -eq 0 ]; then + epub="--enable-epub" + else + epub="--disable-epub" + fi fi set -e