summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author B. Watson <urchlay@slackware.uk>2025-06-11 00:54:07 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2025-06-11 01:05:16 +0700
commitbdd755ea6584ab005156bc66066a91d34358c641 (patch)
treed828863fb4e8f625bb27920e126531de8f161343
parent8cac87669bba4b7a86c3acf381d88c492bb9510b (diff)
downloadslackbuilds-bdd755ea6584ab005156bc66066a91d34358c641.tar.gz
slackbuilds-bdd755ea6584ab005156bc66066a91d34358c641.tar.xz
graphics/gcolor3: Added (simple color chooser).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--graphics/gcolor3/README15
-rw-r--r--graphics/gcolor3/doinst.sh9
-rw-r--r--graphics/gcolor3/gcolor3.SlackBuild105
-rw-r--r--graphics/gcolor3/gcolor3.info10
-rw-r--r--graphics/gcolor3/slack-desc19
5 files changed, 158 insertions, 0 deletions
diff --git a/graphics/gcolor3/README b/graphics/gcolor3/README
new file mode 100644
index 0000000000..d0b0081de7
--- /dev/null
+++ b/graphics/gcolor3/README
@@ -0,0 +1,15 @@
+gcolor3 (GTK+3 color selector)
+
+gcolor3 is a color selection dialog written in GTK+3. It is much like
+gcolor2, but uses the newer GTK+ version and other modernisations to
+better integrate into your modern desktop.
+
+Ever wanted to know the value of that color on your screen? Gcolor3
+enables you to pick the color from any pixel on your screen. It
+also allows you to create and save a palette.
+
+If the homepage is down, there's an archived copy here:
+http://web.archive.org/web/20250511235717/https://hjdskes.nl/projects/gcolor3/
+
+Note: I'm aware that this isn't the latest version of gcolor3. It is,
+however, the last version that can be built on Slackware 15.0.
diff --git a/graphics/gcolor3/doinst.sh b/graphics/gcolor3/doinst.sh
new file mode 100644
index 0000000000..65c7e2eeb9
--- /dev/null
+++ b/graphics/gcolor3/doinst.sh
@@ -0,0 +1,9 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/graphics/gcolor3/gcolor3.SlackBuild b/graphics/gcolor3/gcolor3.SlackBuild
new file mode 100644
index 0000000000..d2ccdaf381
--- /dev/null
+++ b/graphics/gcolor3/gcolor3.SlackBuild
@@ -0,0 +1,105 @@
+#!/bin/bash
+
+# Slackware build script for gcolor3
+
+# Written by B. Watson (urchlay@slackware.uk)
+
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+
+# gcolor2 and gcolor3 do the same thing. Which one to use is basically
+# an aesthetic choice. I prefer gcolor2, actually: gcolor3 doesn't use
+# my window manager's titlebar, so it looks weird to me. Also, gcolor2
+# starts out with the contents of rgb.txt as the palette, which is
+# more useful that gcolor3's "you don't have any saved colors".
+
+# Note: v2.4.0 requires libportal. Our 15.0 repo's version of
+# libportal is too old, and can't be updated. So gcolor3 stays at
+# 2.3.1 until further notice (libportal not required at all).
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=gcolor3
+VERSION=${VERSION:-2.3.1}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+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}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
+
+# Grr. Nobody should ever ship release sources with -Werror enabled.
+# The -Dwerror=false below fixes it. The warnings are just GTK
+# deprecations, because our GTK+3 is newer than whatever the author
+# happened to be using in 2018 when this was released.
+
+mkdir build
+cd build
+ CFLAGS="$SLKCFLAGS" \
+ CXXFLAGS="$SLKCFLAGS" \
+ meson .. \
+ --buildtype=release \
+ --infodir=/usr/info \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ -Dwerror=false \
+ -Dstrip=true
+ "${NINJA:=ninja}"
+ DESTDIR=$PKG $NINJA install
+cd ..
+
+gzip -9 $PKG/usr/man/man*/*
+
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKGDOC
+cp -a README* LICENSE* $PKGDOC
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+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
diff --git a/graphics/gcolor3/gcolor3.info b/graphics/gcolor3/gcolor3.info
new file mode 100644
index 0000000000..1ca12ee2dc
--- /dev/null
+++ b/graphics/gcolor3/gcolor3.info
@@ -0,0 +1,10 @@
+PRGNAM="gcolor3"
+VERSION="2.3.1"
+HOMEPAGE="https://www.hjdskes.nl/projects/gcolor3/"
+DOWNLOAD="https://github.com/Hjdskes/gcolor3/archive/v2.3.1/gcolor3-2.3.1.tar.gz"
+MD5SUM="a611dbb3ee2561dbc70eb59aa473b10d"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="B. Watson"
+EMAIL="urchlay@slackware.uk"
diff --git a/graphics/gcolor3/slack-desc b/graphics/gcolor3/slack-desc
new file mode 100644
index 0000000000..f8c8569ded
--- /dev/null
+++ b/graphics/gcolor3/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+gcolor3: gcolor3 (GTK+3 color selector)
+gcolor3:
+gcolor3: gcolor3 is a color selection dialog written in GTK+3. It is much like
+gcolor3: gcolor2, but uses the newer GTK+ version and other modernisations to
+gcolor3: better integrate into your modern desktop.
+gcolor3:
+gcolor3: Ever wanted to know the value of that color on your screen? Gcolor3
+gcolor3: enables you to pick the color from any pixel on your screen. It
+gcolor3: also allows you to create and save a palette.
+gcolor3:
+gcolor3: