aboutsummaryrefslogtreecommitdiff
path: root/system/gnome-disk-utility/gnome-disk-utility.SlackBuild
diff options
context:
space:
mode:
authorBob Funk <bobfunk11@gmail.com>2022-06-09 23:59:17 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-06-11 08:59:03 +0700
commite3ac863edb4ff7bca372bd0d0e4dd987439312d5 (patch)
treebecc1aa3dc21ff4eac58183f743ea9b3e60cada4 /system/gnome-disk-utility/gnome-disk-utility.SlackBuild
parentcf8102ae3a7063d341c081ff2b8655ef96d7c005 (diff)
system/gnome-disk-utility: Updated for version 42.0. New maintainer.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/gnome-disk-utility/gnome-disk-utility.SlackBuild')
-rw-r--r--system/gnome-disk-utility/gnome-disk-utility.SlackBuild61
1 files changed, 33 insertions, 28 deletions
diff --git a/system/gnome-disk-utility/gnome-disk-utility.SlackBuild b/system/gnome-disk-utility/gnome-disk-utility.SlackBuild
index f32576741254c..9cd4575abf112 100644
--- a/system/gnome-disk-utility/gnome-disk-utility.SlackBuild
+++ b/system/gnome-disk-utility/gnome-disk-utility.SlackBuild
@@ -2,6 +2,7 @@
# Slackware build script for gnome-disk-utility
+# Copyright 2022 Bob Funk Winnipeg, Canada
# Copyright 2015,2021 Robby Workman, Tuscaloosa, Alabama, USA
# All rights reserved.
#
@@ -25,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gnome-disk-utility
-VERSION=${VERSION:-3.38.2}
+VERSION=${VERSION:-42.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +39,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -70,7 +68,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -79,28 +77,33 @@ 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 {} \;
-# Configure, build, and install:
-export CFLAGS="$SLKCFLAGS"
-export CXXFLAGS="$SLKCFLAGS"
-mkdir meson-build
-cd meson-build
-meson setup \
- --prefix=/usr \
- --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 \
- --buildtype=release \
- -Dlogind=libelogind \
- -Dgsd_plugin=false \
- .. || exit 1
- "${NINJA:=ninja}" || exit 1
- DESTDIR=$PKG $NINJA install || exit 1
+# Detect if gnome-settings-daemon is installed and disable building
+# the plugin if its not installed:
+if ( pkg-config --exists gnome-settings-daemon); then
+ GSD_PLUGIN=true
+ echo "gnome-settings-daemon found, enabling plugin."
+else
+ GSD_PLUGIN=false
+ echo "gnome-settings-daemon not found, disabling plugin."
+fi
+
+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 \
+ -Dstrip=true \
+ -Dlogind=libelogind \
+ -Dgsd_plugin=$GSD_PLUGIN
+ "${NINJA:=ninja}"
+ DESTDIR=$PKG $NINJA install
cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
@@ -110,7 +113,9 @@ 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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING HACKING NEWS README.md TODO $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS COPYING HACKING NEWS README.md \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install