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