summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Matteo Bernardini2024-04-24 14:55:45 +0200
committer Willy Sudiarto Raharjo2024-04-27 04:28:39 +0200
commitb1d45924e6ad0ce650f64c63f81b628d07749900 (patch)
treecdd83b8c62c7a9a3675ff98e631ef36ee0209a1d
parent2173c3d27f443dfca17af2bbead613e52325330a (diff)
downloadslackbuilds-b1d45924e6ad0ce650f64c63f81b628d07749900.tar.gz
system/lxtask: Switch to gtk+3 by default.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--system/lxtask/README4
-rw-r--r--system/lxtask/lxtask.SlackBuild19
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 <ponce@slackbuilds.org, Pisa, Italy
+# Copyright 2010-2024 Matteo Bernardini <ponce@slackbuilds.org, Pisa, Italy
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for
@@ -53,6 +53,8 @@
# * updated.
# 0.1.10-1: 10/apr/2021 by Matteo Bernardini <ponce@slackbuilds.org>
# * updated.
+# 0.1.10-2: 24/apr/2024 by Matteo Bernardini <ponce@slackbuilds.org>
+# * 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