diff options
Diffstat (limited to 'system/colord-gtk/colord-gtk.SlackBuild')
-rw-r--r-- | system/colord-gtk/colord-gtk.SlackBuild | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/system/colord-gtk/colord-gtk.SlackBuild b/system/colord-gtk/colord-gtk.SlackBuild index 03e3e209fd..3c15c24599 100644 --- a/system/colord-gtk/colord-gtk.SlackBuild +++ b/system/colord-gtk/colord-gtk.SlackBuild @@ -21,15 +21,24 @@ # 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. +# +# 2023-05-06, Modified by Bob Funk: +# - Updated to colord-gtk 0.3.0 +# - This version's default is to build only gtk3 and gtk4 +# - Added a toggle for enabling gtk2 cd $(dirname $0) ; CWD=$(pwd) PRGNAM=colord-gtk -VERSION=${VERSION:-0.2.0} +VERSION=${VERSION:-0.3.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} +# The default build is gtk4 & gtk3 enabled, and gtk2 disabled. +# Leave the default as-is, but give a way to switch gtk2 from build env: +GTK2=${GTK2:-false} + if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i586 ;; @@ -38,9 +47,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 @@ -91,6 +97,7 @@ cd build --mandir=/usr/man \ --prefix=/usr \ --sysconfdir=/etc \ + -Dgtk2=${GTK2} \ -Dman=false "${NINJA:=ninja}" DESTDIR=$PKG $NINJA install |