diff options
Diffstat (limited to 'desktop/lxappearance/lxappearance.SlackBuild')
-rw-r--r-- | desktop/lxappearance/lxappearance.SlackBuild | 44 |
1 files changed, 32 insertions, 12 deletions
diff --git a/desktop/lxappearance/lxappearance.SlackBuild b/desktop/lxappearance/lxappearance.SlackBuild index 7286f6cf51..cceb060b56 100644 --- a/desktop/lxappearance/lxappearance.SlackBuild +++ b/desktop/lxappearance/lxappearance.SlackBuild @@ -1,13 +1,33 @@ -#!/bin/sh +#!/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} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -17,7 +37,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -36,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 @@ -86,4 +106,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |