From f5b6bb79948d49b3a4c212cb9f479b44fbf7a6ab Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Mon, 28 Jan 2019 21:39:57 +0700 Subject: [PATCH] libxkbcommon: Switch to meson. Fixed #35. Signed-off-by: Willy Sudiarto Raharjo --- libxkbcommon/libxkbcommon.SlackBuild | 35 +++++++++++++++++----------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/libxkbcommon/libxkbcommon.SlackBuild b/libxkbcommon/libxkbcommon.SlackBuild index 06d2f20..b977855 100644 --- a/libxkbcommon/libxkbcommon.SlackBuild +++ b/libxkbcommon/libxkbcommon.SlackBuild @@ -27,7 +27,7 @@ PRGNAM=libxkbcommon VERSION=${VERSION:-0.8.2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_csb} if [ -z "$ARCH" ]; then @@ -74,20 +74,27 @@ 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 \ - --docdir=/usr/doc/$PRGNAM-$VERSION \ - --build=$ARCH-slackware-linux \ - --disable-static +# Comment these two lines in order to build +sed -i "s|executable('fuzz-keymap'|\#executable('fuzz-keymap'|g" meson.build +sed -i "s|executable('fuzz-compose'|\#executable('fuzz-compose'|g" meson.build -make -make install-strip DESTDIR=$PKG +mkdir -p build +cd build +meson setup \ + --prefix=/usr \ + --buildtype=release \ + --libdir=lib${LIBDIRSUFFIX} \ + --libexecdir=/usr/lib${LIBDIRSUFFIX} \ + --mandir=/usr/man \ + -Denable-wayland=false \ + -Denable-docs=false \ + -Denable-x11=true \ + -Ddefault_library=shared \ + .. + + ninja + DESTDIR=$PKG ninja install +cd .. mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a LICENSE README.md NEWS PACKAGING $PKG/usr/doc/$PRGNAM-$VERSION