diff options
author | B. Watson <yalhcru@gmail.com> | 2021-11-30 14:25:20 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-12-10 08:37:32 +0700 |
commit | 2232e8f31abec010ec4e03fcc2a2ab0063218e5e (patch) | |
tree | f64f14f6c7bdcc7cf88a4e8ee9002ae87737959e /audio | |
parent | 9189821b89c96c341f80701f6bd0d19965285358 (diff) | |
download | slackbuilds-2232e8f31abec010ec4e03fcc2a2ab0063218e5e.tar.gz |
audio/connie: New-style icons.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio')
-rw-r--r-- | audio/connie/README | 10 | ||||
-rw-r--r-- | audio/connie/connie.SlackBuild | 24 | ||||
-rw-r--r-- | audio/connie/doinst.sh | 6 |
3 files changed, 30 insertions, 10 deletions
diff --git a/audio/connie/README b/audio/connie/README index ef912989a8..5055f174a0 100644 --- a/audio/connie/README +++ b/audio/connie/README @@ -10,11 +10,11 @@ By default, connie is built with SSE math support. If installing on a system without SSE ("grep sse /proc/cpuinfo" will tell you), set SSE=no in the script's environment. -connie's standard user interface is console-based. If you want to -also build a simple Qt user interface, set QT=yes in the script's -environment. The Qt version is called connie_qt4. It accepts the same -arguments as the terminal version, but doesn't support any keyboard -commands. +connie's standard user interface is console-based. If you want to also +build a simple Qt user interface, install qt4, then set QT=yes in this +script's environment. The Qt version is called connie_qt4. It accepts +the same arguments as the terminal version, but doesn't support any +keyboard commands. This package uses POSIX filesystem capabilities to execute with elevated privileges (required for realtime audio processing). This diff --git a/audio/connie/connie.SlackBuild b/audio/connie/connie.SlackBuild index 89a767873f..480fc5af60 100644 --- a/audio/connie/connie.SlackBuild +++ b/audio/connie/connie.SlackBuild @@ -6,11 +6,13 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20211130 bkw: BUILD=2, new-style icons. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=connie VERSION=${VERSION:-0.4.3rc9} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -22,9 +24,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 @@ -62,6 +61,8 @@ SSE=${SSE:-yes} # QT is left disabled by default because it's experimental. It works, # but is basically useless. +# 20211130 bkw: Slackware -current dropped qt4, and SBo hasn't picked it +# up yet, and this won't with with 5. So even more useless than before. QT=${QT:-no} if [ "$SSE" = "yes" ]; then @@ -88,8 +89,21 @@ make $TARGET mkdir -p $PKG/usr/bin $PKG/usr/man/man1 install -s -m0755 $TARGET $PKG/usr/bin/$PRGNAM +for px in 16 32 48 64; do + size=${px}x${px} + dir=$PKG/usr/share/icons/hicolor/$size/apps + mkdir -p $dir + convert -resize $size $PRGNAM.png $dir/$PRGNAM.png +done + +# original icon is 116x116, do not embiggen. +mkdir -p $PKG/usr/share/icons/hicolor/128x128/apps +convert -background none -extent 128x128 -gravity center \ + $PRGNAM.png \ + $PKG/usr/share/icons/hicolor/128x128/apps/$PRGNAM.png + mkdir -p $PKG/usr/share/pixmaps -cat $PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png +ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png # .desktop written for this SlackBuild mkdir -p $PKG/usr/share/applications diff --git a/audio/connie/doinst.sh b/audio/connie/doinst.sh index 5fb28930db..3e5691a052 100644 --- a/audio/connie/doinst.sh +++ b/audio/connie/doinst.sh @@ -1,3 +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 usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi |