summaryrefslogtreecommitdiffstats
path: root/multimedia/vkeybd
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/vkeybd')
-rw-r--r--multimedia/vkeybd/README16
-rw-r--r--multimedia/vkeybd/doinst.sh6
-rw-r--r--multimedia/vkeybd/vkeybd.SlackBuild40
-rw-r--r--multimedia/vkeybd/vkeybd.info4
4 files changed, 47 insertions, 19 deletions
diff --git a/multimedia/vkeybd/README b/multimedia/vkeybd/README
index d995e0173c..58fb76f817 100644
--- a/multimedia/vkeybd/README
+++ b/multimedia/vkeybd/README
@@ -1,13 +1,13 @@
vkeybd (virtual piano keyboard)
-vkeybd is a virtual keyboard for AWE/OSS, MIDI/OSS and ALSA drivers. It is
-a simple fake of a MIDI keyboard on X-window system. Enjoy music with your
-mouse and computer keyboard.
+vkeybd is a virtual keyboard for AWE/OSS, MIDI/OSS and ALSA
+drivers. It is a simple fake of a MIDI keyboard on X-window
+system. Enjoy music with your mouse and computer keyboard.
-Make sure to have a MIDI synth configured in order to play music with this
-program - if you use the optional dependency TiMidity++, for example, run
-it in ALSA server mode (timidity -iA) before starting vkeybd, then use
-aconnect to link the ALSA sequencer input (vkeybd) and output (timidity)
-ports.
+Make sure to have a MIDI synth configured in order to play music
+with this program - if you use the optional dependency TiMidity++,
+for example, run it in ALSA server mode (timidity -iA) before starting
+vkeybd, then use aconnect to link the ALSA sequencer input (vkeybd)
+and output (timidity) ports.
Also, you may want to provide a custom keymap to vkeybd (~/.vkeybdmap)
diff --git a/multimedia/vkeybd/doinst.sh b/multimedia/vkeybd/doinst.sh
index 5fb28930db..3e5691a052 100644
--- a/multimedia/vkeybd/doinst.sh
+++ b/multimedia/vkeybd/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
diff --git a/multimedia/vkeybd/vkeybd.SlackBuild b/multimedia/vkeybd/vkeybd.SlackBuild
index 6f1df6e494..fe32c4c606 100644
--- a/multimedia/vkeybd/vkeybd.SlackBuild
+++ b/multimedia/vkeybd/vkeybd.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for vkeybd
@@ -8,22 +8,27 @@
# Check https://help.ubuntu.com/community/HowToVirtualKeyboardKeymapping for
# more information.
-# Now maintained by B. Watson <yalhcru@gmail.com>. Original version
+# Now maintained by B. Watson <urchlay@slackware.uk>. Original version
# of this script had no license. Modified version licensed under the
# WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20230103 bkw: BUILD=4, new-style icons, fix .desktop file.
+
# 20180103 bkw:
# - take over maintenance.
# - i486 => i586.
# - determine tcl version from system, instead of hardcoding.
# - simplify script a bit.
-# - fix grammer in README and slack-desc.
+# - fix grammar in README and slack-desc.
# - 'virtual keyboard' => 'virtual piano keyboard' in slack-desc.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=vkeybd
VERSION=${VERSION:-0.1.18d}
-BUILD=${BUILD:-3}
+BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -33,7 +38,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}
@@ -58,8 +67,11 @@ 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 {} \+
-# make .desktop file validate
-sed -i -e '/^Encoding/d' -e '/^Cat/s,Application;,,' $PRGNAM.desktop
+# make .desktop file validate, use correct icon name.
+sed -i -e '/^Encoding/d' \
+ -e '/^Cat/s,Application;,,' \
+ -e '/^Icon/s,_.*,,' \
+ $PRGNAM.desktop
# grab tcl version from the system
TCLVER="$( basename $( readlink /usr/bin/tclsh|sed 's,tclsh,,' ) )"
@@ -74,7 +86,17 @@ make \
gzip -9 $PKG/usr/man/man?/*.?
strip $PKG/usr/bin/*
-ln -s ${PRGNAM}_48x48.png $PKG/usr/share/pixmaps/$PRGNAM.png
+
+for i in pixmaps/${PRGNAM}_*x*.png; do
+ size=$( basename $i .png | cut -d_ -f2 )
+ dir=$PKG/usr/share/icons/hicolor/$size/apps
+ mkdir -p $dir
+ cp -a $i $dir/$PRGNAM.png
+done
+
+( cd $PKG/usr/share/pixmaps
+ rm -f *
+ ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png . )
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a ChangeLog README $PKG/usr/doc/$PRGNAM-$VERSION
@@ -85,4 +107,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
diff --git a/multimedia/vkeybd/vkeybd.info b/multimedia/vkeybd/vkeybd.info
index 3da80ed62b..73cc4460a8 100644
--- a/multimedia/vkeybd/vkeybd.info
+++ b/multimedia/vkeybd/vkeybd.info
@@ -1,10 +1,10 @@
PRGNAM="vkeybd"
VERSION="0.1.18d"
HOMEPAGE="https://github.com/tiwai/vkeybd"
-DOWNLOAD="http://ftp.osuosl.org/pub/gentoo/distfiles/vkeybd-0.1.18d.tar.bz2"
+DOWNLOAD="http://ftp.osuosl.org/pub/gentoo/distfiles/e6/vkeybd-0.1.18d.tar.bz2"
MD5SUM="5c7bd16e2903866f949879b885953a2b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="B. Watson"
-EMAIL="yalhcru@gmail.com"
+EMAIL="urchlay@slackware.uk"