summaryrefslogtreecommitdiffstats
path: root/audio/mp3val/mp3val.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/mp3val/mp3val.SlackBuild')
-rw-r--r--audio/mp3val/mp3val.SlackBuild37
1 files changed, 29 insertions, 8 deletions
diff --git a/audio/mp3val/mp3val.SlackBuild b/audio/mp3val/mp3val.SlackBuild
index 3c15b914b9..031fba6f35 100644
--- a/audio/mp3val/mp3val.SlackBuild
+++ b/audio/mp3val/mp3val.SlackBuild
@@ -1,11 +1,17 @@
-#!/bin/sh
+#!/bin/bash
-# Written by Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
+# Written by Benjamin Trigona-Harany <email removed>
-# Modified by B. Watson <yalhcru@gmail.com>
+# Modified by B. Watson <urchlay@slackware.uk>
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20230106 bkw: BUILD=4, add doinst.sh
+
+# 20211121 bkw: BUILD=3
+# - new-style icons.
+# - replace old icon, too small for modern displays.
+
# 20140921 bkw: bump BUILD to 2
# - took over maintenance
# - add man page
@@ -15,10 +21,13 @@
# become an error someday.
# - minor script cleanups
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=mp3val
VERSION=${VERSION:-0.1.8}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -28,7 +37,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}
@@ -96,9 +109,16 @@ if [ "${GUI:-yes}" = "yes" ]; then
mkdir -p $PKG/usr/share/applications
cat $CWD/$GUINAME.desktop > $PKG/usr/share/applications/$GUINAME.desktop
- # .xpm icon is a modified copy of windowmaker's Microphone.xpm
+ # icon made by SlackBuild author. Not pretty, sorry.
+ for px in 16 32 48 64 96; do
+ size=${px}x${px}
+ dir=$PKG/usr/share/icons/hicolor/$size/apps
+ mkdir -p $dir
+ convert -resize $size $CWD/$GUINAME.png $dir/$GUINAME.png
+ done
+
mkdir -p $PKG/usr/share/pixmaps
- cat $CWD/$GUINAME.xpm > $PKG/usr/share/pixmaps/$GUINAME.xpm
+ ln -s ../icons/hicolor/48x48/apps/$GUINAME.png $PKG/usr/share/pixmaps/$GUINAME.png
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/$GUINAME-$GUIVER
cp -a AUTHORS COPYING NEWS $PKG/usr/doc/$PRGNAM-$VERSION/$GUINAME-$GUIVER
@@ -111,6 +131,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$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