From 803cd02fc87d37936493398f0e19c61e8e93ad1e Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Thu, 14 May 2020 08:02:22 +0700 Subject: [PATCH] cinnamon-screensaver: port to meson. Signed-off-by: Willy Sudiarto Raharjo --- .../cinnamon-screensaver.SlackBuild | 33 +++++++++---------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/cinnamon-screensaver/cinnamon-screensaver.SlackBuild b/cinnamon-screensaver/cinnamon-screensaver.SlackBuild index 23c7bd6..fc54d07 100644 --- a/cinnamon-screensaver/cinnamon-screensaver.SlackBuild +++ b/cinnamon-screensaver/cinnamon-screensaver.SlackBuild @@ -71,23 +71,22 @@ 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" \ -./autogen.sh \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --libexecdir=/usr/lib${LIBDIRSUFFIX} \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --mandir=/usr/man \ - --docdir=/usr/doc/$PRGNAM-$VERSION \ - --enable-compile-warnings=no \ - --enable-introspection=yes \ - --enable-locking \ - --build=$ARCH-slackware-linux - -make -make install 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 \ + -Dlocking=true \ + ninja + DESTDIR=$PKG ninja install +cd .. # Don't ship .la files: rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la