summaryrefslogtreecommitdiffstats
path: root/desktop/wmix
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/wmix')
-rw-r--r--desktop/wmix/README13
-rw-r--r--desktop/wmix/doinst.sh9
-rw-r--r--desktop/wmix/manpage.diff44
-rw-r--r--desktop/wmix/slack-desc14
-rw-r--r--desktop/wmix/wmix.SlackBuild69
-rw-r--r--desktop/wmix/wmix.info10
-rw-r--r--desktop/wmix/wmix.pngbin0 -> 7848 bytes
7 files changed, 121 insertions, 38 deletions
diff --git a/desktop/wmix/README b/desktop/wmix/README
index 8e9a8d2394..15f8b44abd 100644
--- a/desktop/wmix/README
+++ b/desktop/wmix/README
@@ -1,7 +1,10 @@
+wmix (dockapp mixer)
+
Dockapp mixer for OSS or ALSA.
-Allows toggling record source, muting individual channels, adjusting volume and balance,
-all in a compact dockapp size, with TV-like on-screen-display for volume levels.
-Supports mousewheel to adjust current channel volume, and can be controlled remotely
-with SIGUSR1 / SIGUSR2 to adjust the volume, too.
-Can use a configuration file to control some of the features.
+Allows toggling record source, muting individual channels, adjusting
+volume and balance, all in a compact dockapp size, with TV-like
+on-screen-display for volume levels. Supports mousewheel to adjust
+current channel volume, and can be controlled remotely with SIGUSR1 /
+SIGUSR2 to adjust the volume, too. Can use a configuration file to
+control some of the features.
diff --git a/desktop/wmix/doinst.sh b/desktop/wmix/doinst.sh
new file mode 100644
index 0000000000..3e5691a052
--- /dev/null
+++ b/desktop/wmix/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 usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/desktop/wmix/manpage.diff b/desktop/wmix/manpage.diff
new file mode 100644
index 0000000000..ccd4381594
--- /dev/null
+++ b/desktop/wmix/manpage.diff
@@ -0,0 +1,44 @@
+diff -Naur wmix-3.5/wmix.1x wmix-3.5.patched/wmix.1x
+--- wmix-3.5/wmix.1x 2019-05-10 06:04:53.000000000 -0400
++++ wmix-3.5.patched/wmix.1x 2022-02-08 13:03:35.228542615 -0500
+@@ -1,4 +1,4 @@
+-.TH wmix 1x "3.2" "Fredrik Steen"
++.TH wmix 1x "3.5" "Fredrik Steen"
+ .SH NAME
+ wmix \- Dockapp mixer for OSS or ALSA
+ .
+@@ -24,6 +24,9 @@
+ .
+ .SH OPTIONS
+ .TP
++\fB\-a\fR <\fIapi\fP>
++Use this sound API (\fIoss\fP or \fIalsa\fP, default is \fIalsa\fP).
++.TP
+ \fB\-d\fR <\fIdisplay\fP>
+ Connect to remote X display
+ .TP
+@@ -47,8 +50,8 @@
+ below)
+ .TP
+ \fB\-m\fR <\fIdevice\fP>
+-Use specified mixer device instead of
+-.I /dev/mixer
++For oss, use specified mixer device instead of \fI/dev/mixer\fP.
++For alsa, use specified card name instead of \fIdefault\fP.
+ .TP
+ \fB\-v\fR
+ Verbose start, report detected channels
+@@ -58,8 +61,12 @@
+ is read on startup.
+ It may contains one configuration command per line:
+ .TP
++api=<\fIapi\fP>
++Use this sound API (same as \fB\-a\fR option).
++.TP
+ device=<\fImixer_device\fP>
+-defines the device file to use instead of \fB/dev/mixer\fP
++For oss, defines the device file to use instead of \fB/dev/mixer\fP.
++For alsa, defines the audio card to use instead of \fBdefault\fP.
+ .TP
+ exclude=<\fIchannel_name\fP>
+ exclude the specified channel from control, you can use it as many times as needed (see
diff --git a/desktop/wmix/slack-desc b/desktop/wmix/slack-desc
index 068e2bb1cd..eb5ac64dc7 100644
--- a/desktop/wmix/slack-desc
+++ b/desktop/wmix/slack-desc
@@ -8,12 +8,12 @@
|-----handy-ruler------------------------------------------------------|
wmix: wmix (dockapp mixer)
wmix:
-wmix: Dockapp mixer for OSS or ALSA. Allows toggling record source, muting
-wmix: individual channels, adjusting volume and balance, all in a compact
-wmix: dockapp size, with TV-like on-screen-display for volume levels.
-wmix: Supports mousewheel to adjust current channel volume, and can be
-wmix: controlled remotely with SIGUSR1 / SIGUSR2 to adjust the volume, too.
-wmix:
-wmix:
+wmix: Dockapp mixer for OSS or ALSA.
wmix:
+wmix: Allows toggling record source, muting individual channels, adjusting
+wmix: volume and balance, all in a compact dockapp size, with TV-like
+wmix: on-screen-display for volume levels. Supports mousewheel to adjust
+wmix: current channel volume, and can be controlled remotely with SIGUSR1 /
+wmix: SIGUSR2 to adjust the volume, too. Can use a configuration file to
+wmix: control some of the features.
wmix:
diff --git a/desktop/wmix/wmix.SlackBuild b/desktop/wmix/wmix.SlackBuild
index 0786374556..a3f1ac58a7 100644
--- a/desktop/wmix/wmix.SlackBuild
+++ b/desktop/wmix/wmix.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for <wmix>
@@ -22,10 +22,25 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# Now maintained by B. Watson <urchlay@slackware.uk>
+
+# 20221229 bkw: BUILD=2, fix icon size (was 33x32, d'oh!)
+
+# 20220208 bkw:
+# - take over maintenance.
+# - update for v3.5.
+# - add an icon and doinst.sh
+# - don't install useless INSTALL in doc dir.
+# - do install sample.wmixrc in doc dir.
+# - add missing option to the man page.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=wmix
-VERSION=${VERSION:-3.3}
-BUILD=${BUILD:-1}
+VERSION=${VERSION:-3.5}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +50,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}
@@ -60,14 +79,21 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.?z
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+
+# 20220208 bkw: make the .desktop validate, clean up the description,
+# and add the icon.
+sed -i -e '/^Categories/s|$|;AudioVideo|' \
+ -e 's/using the.*/for ALSA or OSS/' \
+ -e '$aIcon=wmix' \
+ $PRGNAM.desktop
+
+# 20220208 bkw: document the -a option and api= config command.
+patch -p1 < $CWD/manpage.diff
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -81,22 +107,23 @@ CXXFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
make
-make install DESTDIR=$PKG
-
-find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+make install-strip DESTDIR=$PKG
-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
+gzip -9 $PKG/usr/man/man?/*
+# 20220208 bkw: icon made by editing a screenshot of the dockapp.
+mkdir -p $PKG/usr/share/icons/hicolor/32x32/apps $PKG/usr/share/pixmaps
+cat $CWD/$PRGNAM.png > $PKG/usr/share/icons/hicolor/32x32/apps/$PRGNAM.png
+ln -s ../icons/hicolor/32x32/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS BUGS COPYING INSTALL NEWS README \
- $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKGDOC
+cp -a AUTHORS BUGS COPYING NEWS README sample.wmixrc $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:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/desktop/wmix/wmix.info b/desktop/wmix/wmix.info
index 98ed6519f6..16cedaef62 100644
--- a/desktop/wmix/wmix.info
+++ b/desktop/wmix/wmix.info
@@ -1,10 +1,10 @@
PRGNAM="wmix"
-VERSION="3.3"
+VERSION="3.5"
HOMEPAGE="https://www.dockapps.net/wmix"
-DOWNLOAD="https://www.dockapps.net/download/wmix-3.3.tar.gz"
-MD5SUM="7d1a1ac7952dbcedf8c5e734bec8d54b"
+DOWNLOAD="https://www.dockapps.net/download/wmix-3.5.tar.gz"
+MD5SUM="643e9aa78dbd0b7df4a03b06de69cdde"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Michael Heras"
-EMAIL="userxbw@gmail.com"
+MAINTAINER="B. Watson"
+EMAIL="urchlay@slackware.uk"
diff --git a/desktop/wmix/wmix.png b/desktop/wmix/wmix.png
new file mode 100644
index 0000000000..28b47d0154
--- /dev/null
+++ b/desktop/wmix/wmix.png
Binary files differ