summaryrefslogtreecommitdiffstats
path: root/source/x/xdg-desktop-portal/xdg-desktop-portal.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/x/xdg-desktop-portal/xdg-desktop-portal.SlackBuild')
-rwxr-xr-xsource/x/xdg-desktop-portal/xdg-desktop-portal.SlackBuild48
1 files changed, 23 insertions, 25 deletions
diff --git a/source/x/xdg-desktop-portal/xdg-desktop-portal.SlackBuild b/source/x/xdg-desktop-portal/xdg-desktop-portal.SlackBuild
index b95dfb407..db782ccbf 100755
--- a/source/x/xdg-desktop-portal/xdg-desktop-portal.SlackBuild
+++ b/source/x/xdg-desktop-portal/xdg-desktop-portal.SlackBuild
@@ -1,7 +1,7 @@
#!/bin/bash
# Copyright 2018 Vincent Batts <vbatts@hashbangbash.com>
-# Copyright 2021 Patrick J. Volkerding, Sebeka, Minnesota, USA
+# Copyright 2021, 2023 Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -87,33 +87,31 @@ find . \
-exec chmod 644 {} \+
# Configure, build, and install:
-if [ ! -r configure ]; then
- if [ -x ./autogen.sh ]; then
- NOCONFIGURE=1 ./autogen.sh
- else
- autoreconf -vif
- fi
-fi
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
+export CFLAGS="$SLKCFLAGS"
+export CXXFLAGS="$SLKCFLAGS"
+mkdir meson-build
+cd meson-build
+meson setup \
--prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --libdir=lib${LIBDIRSUFFIX} \
+ --libexecdir=/usr/libexec \
+ --bindir=/usr/bin \
+ --sbindir=/usr/sbin \
+ --includedir=/usr/include \
+ --datadir=/usr/share \
+ --mandir=/usr/man \
--sysconfdir=/etc \
--localstatedir=/var \
- --docdir=/usr/doc/$PKGNAM-$VERSION \
- --mandir=/usr/man \
- --infodir=/usr/info \
- --disable-static \
- --disable-libportal \
- --disable-geoclue \
- --with-systemd=no \
- --build=$ARCH-slackware-linux || exit 1
-make $NUMJOBS || make || exit 1
-make install DESTDIR=$PKG || exit 1
-
-# Don't ship .la files:
-rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
+ --buildtype=release \
+ -Dlibportal=disabled \
+ -Dflatpak-interfaces=disabled \
+ -Dgeoclue=disabled \
+ -Dsystemd=disabled \
+ -Dsandboxed-image-validation=false \
+ .. || exit 1
+ "${NINJA:=ninja}" $NUMJOBS || exit 1
+ DESTDIR=$PKG $NINJA install || exit 1
+cd ..
# Strip binaries:
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null