diff options
Diffstat (limited to 'system/lxtask/lxtask.SlackBuild')
-rw-r--r-- | system/lxtask/lxtask.SlackBuild | 19 |
1 files changed, 11 insertions, 8 deletions
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 |