From b1d45924e6ad0ce650f64c63f81b628d07749900 Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Wed, 24 Apr 2024 14:55:45 +0200 Subject: system/lxtask: Switch to gtk+3 by default. Signed-off-by: Matteo Bernardini Signed-off-by: Willy Sudiarto Raharjo --- system/lxtask/README | 4 ++++ system/lxtask/lxtask.SlackBuild | 19 +++++++++++-------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/system/lxtask/README b/system/lxtask/README index 6bf97e6b7c..f7e24888d4 100644 --- a/system/lxtask/README +++ b/system/lxtask/README @@ -3,3 +3,7 @@ lxtask (simple task manager for LXDE) LXTask is lightweight and desktop-independent task manager derived from xfce4-taskmanager with all dependencies on xfce removed, new features, and some improvement of the user interface. + +If you want to build this for gtk+2, pass to the script the switch + + GTK3=no diff --git a/system/lxtask/lxtask.SlackBuild b/system/lxtask/lxtask.SlackBuild index 8137d5fa01..d5fc6b4349 100644 --- a/system/lxtask/lxtask.SlackBuild +++ b/system/lxtask/lxtask.SlackBuild @@ -1,7 +1,7 @@ #!/bin/bash # $Id: lxtask.SlackBuild,v 1.2 2009/09/11 10:39:38 root Exp root $ # Copyright (c) 2008-2009 Eric Hameleers, Eindhoven, NL -# Copyright 2010-2019 Matteo Bernardini # * updated. +# 0.1.10-2: 24/apr/2024 by Matteo Bernardini +# * Switch to gtk+3. # # Run 'sh lxtask.SlackBuild' to build a Slackware package. # The package is created in /tmp . @@ -64,7 +66,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=lxtask VERSION=${VERSION:-0.1.10} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -76,11 +78,6 @@ if [ -z "$ARCH" ]; then esac fi -DOCS="AUTHORS COPYING ChangeLog INSTALL NEWS README TODO" - -# 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 @@ -104,6 +101,10 @@ else LIBDIRSUFFIX="" fi +WITHGTK3="--enable-gtk3" ; [ "${GTK3:-yes}" = "no" ] && WITHGTK3="" + +DOCS="AUTHORS COPYING ChangeLog INSTALL README TODO" + set -e rm -rf $PKG @@ -131,13 +132,15 @@ CFLAGS="$SLKCFLAGS" \ --mandir=/usr/man \ --program-prefix= \ --program-suffix= \ + $WITHGTK3 \ --build=$ARCH-slackware-linux make make install-strip DESTDIR=$PKG +echo 'X-AppStream-Ignore=true' >> "$PKG/usr/share/applications/$PRGNAM.desktop" + find $PKG/usr/man -type f -exec gzip -9 {} \; -# Add documentation: mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -- cgit v1.2.3