From 11a24b54d4fb237abbb87c1365591df207355bc9 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Thu, 16 Jun 2022 18:09:28 +0700 Subject: [PATCH] zenity: Port to meson. Signed-off-by: Willy Sudiarto Raharjo --- zenity/zenity.SlackBuild | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/zenity/zenity.SlackBuild b/zenity/zenity.SlackBuild index 9e127a2..7ee5469 100644 --- a/zenity/zenity.SlackBuild +++ b/zenity/zenity.SlackBuild @@ -56,21 +56,26 @@ 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 {} \; -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --mandir=/usr/man \ - --enable-debug=no \ - --enable-libnotify \ - --without-help-dir \ - --build=$ARCH-slackware-linux +WEBKIT=false +pkg-config --exists webkit2gtk-4.0 && WEBKIT=true -make -make install-strip DESTDIR=$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 \ + -Dlibnotify=true \ + -Dwebkitgtk=$WEBKIT + ninja + DESTDIR=$PKG ninja install +cd .. find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done