desktop/lxappearance: Switch to gtk+3 by default, add a license.

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:37:42 +02:00 committed by Willy Sudiarto Raharjo
parent 758643bd51
commit 84c9c84141
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 25 additions and 15 deletions

View file

@ -6,6 +6,6 @@ not to use this inside of LXDE) pass to the script the switch:
DBUS=no
If you want to build this for GTK+3, pass to the script the switch
If you want to build this for gtk+2, pass to the script the switch
GTK3=yes
GTK3=no

View file

@ -1,14 +1,31 @@
#!/bin/bash
# Slackware build script for LXAppearance
# Originally by "majk" <majk@konstelacioj.info>
# Copyright 2019-2024 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=lxappearance
VERSION=${VERSION:-0.6.3}
BUILD=${BUILD:-3}
BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -20,9 +37,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
@ -46,13 +60,9 @@ else
LIBDIRSUFFIX=""
fi
DBUS=${DBUS:-yes}
DBUS_SUPPORT="--enable-dbus"
[ "$DBUS" = "no" ] && DBUS_SUPPORT=""
DBUS_SUPPORT="--enable-dbus" ; [ "${DBUS:-yes}" = "no" ] && DBUS_SUPPORT=""
WITHGTK3=""
[ "${GTK3:-no}" = "yes" ] && WITHGTK3="--enable-gtk3"
WITHGTK3="--enable-gtk3" ; [ "${GTK3:-yes}" = "no" ] && WITHGTK3=""
set -e