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>
This commit is contained in:
Matteo Bernardini 2024-04-24 14:55:45 +02:00 committed by Willy Sudiarto Raharjo
parent 2173c3d27f
commit b1d45924e6
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 15 additions and 8 deletions

View file

@ -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

View file

@ -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