diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2024-04-24 14:52:37 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-04-27 09:28:39 +0700 |
commit | 2dd250547a554dfb1c1783c626a096f184eae39d (patch) | |
tree | 59352dc9f7c3ea36fdd33988fa7ac764048b9b55 /system/lxrandr | |
parent | 84841703f62f1f2fda1659adb5b36f54aa9c68d5 (diff) |
system/lxrandr: Switch to gtk+3 by default.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/lxrandr')
-rw-r--r-- | system/lxrandr/README | 4 | ||||
-rw-r--r-- | system/lxrandr/lxrandr.SlackBuild | 15 |
2 files changed, 13 insertions, 6 deletions
diff --git a/system/lxrandr/README b/system/lxrandr/README index 51a088f6642d9..b770221d91645 100644 --- a/system/lxrandr/README +++ b/system/lxrandr/README @@ -2,3 +2,7 @@ lxrandr (LXDE monitor config tool) LXRandR is a monitor configuration tool using X.Org's XRandR extension (if the graphics driver supports it). + +If you want to build this for gtk+2, pass to the script the switch + + GTK3=no diff --git a/system/lxrandr/lxrandr.SlackBuild b/system/lxrandr/lxrandr.SlackBuild index bab357a4aefeb..d97837c3215a5 100644 --- a/system/lxrandr/lxrandr.SlackBuild +++ b/system/lxrandr/lxrandr.SlackBuild @@ -1,7 +1,7 @@ #!/bin/bash # $Id: lxrandr.SlackBuild,v 1.2 2009/09/11 10:27:05 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 @@ -47,6 +47,8 @@ # * update. # 0.3.2-1 11/mar/2019 by Matteo Bernardini <ponce@slackbuilds.org> # * update. +# 0.3.2-2 24/apr/2024 by Matteo Bernardini <ponce@slackbuilds.org> +# * Switch to gtk+3. # # Run 'sh lxrandr.SlackBuild' to build a Slackware package. # The package is created in /tmp . @@ -58,7 +60,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=lxrandr VERSION=${VERSION:-0.3.2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -70,9 +72,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 @@ -96,6 +95,8 @@ else LIBDIRSUFFIX="" fi +WITHGTK3="--enable-gtk3" ; [ "${GTK3:-yes}" = "no" ] && WITHGTK3="" + DOCS="AUTHORS COPYING README" set -e @@ -126,14 +127,16 @@ 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 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -# 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 |