cinnamon-desktop: Switch to meson.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
Willy Sudiarto Raharjo 2018-04-25 08:09:02 +07:00
parent 1d9c2ce9f4
commit 317ff5327d

View file

@ -74,23 +74,20 @@ find -L . \
# Use ConsoleKit instead of logind # Use ConsoleKit instead of logind
sed -i "s|<default>true</default>|<default>false</default>|g" schemas/org.cinnamon.desktop.session.gschema.xml.in.in sed -i "s|<default>true</default>|<default>false</default>|g" schemas/org.cinnamon.desktop.session.gschema.xml.in.in
CFLAGS="$SLKCFLAGS" \ mkdir -p build
CXXFLAGS="$SLKCFLAGS" \ cd build
./autogen.sh \ meson setup \
--prefix=/usr \ --prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \ --buildtype=release \
--sysconfdir=/etc \ --libdir=lib${LIBDIRSUFFIX} \
--localstatedir=/var \ --libexecdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \ --mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \ -Ddocs=true \
--enable-introspection=yes \ ..
--build=$ARCH-slackware-linux
sed -i "s|include \$(libgsystem_srcpath)\/\$(DEPDIR)/libgsystem_la-gsystem-file-utils.Plo||" libcinnamon-desktop/Makefile ninja
sed -i "s|include \$(libgsystem_srcpath)\/\$(DEPDIR)/libgsystem_la-gsystem-local-alloc.Plo||" libcinnamon-desktop/Makefile DESTDIR=$PKG ninja install
cd ..
make
make install DESTDIR=$PKG
# Don't ship .la files: # Don't ship .la files:
rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la