aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Drobek <dominik.drobek (at) o2.pl>2020-02-23 23:28:41 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-02-23 23:28:41 +0700
commitede67b9b9a007424c11db374adeeaa39930a8848 (patch)
tree79bc751d43e0e49d82f3deb7de88575ecad0ec7f
parentb6064771d912e74f04dd943d9bbb13286f9fa9f4 (diff)
audio/MP3Diags: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--audio/MP3Diags/MP3Diags.SlackBuild (renamed from multimedia/MP3Diags/MP3Diags.SlackBuild)19
-rw-r--r--audio/MP3Diags/MP3Diags.info (renamed from multimedia/MP3Diags/MP3Diags.info)4
-rw-r--r--audio/MP3Diags/README (renamed from multimedia/MP3Diags/README)4
-rw-r--r--audio/MP3Diags/doinst.sh9
-rw-r--r--audio/MP3Diags/slack-desc (renamed from multimedia/MP3Diags/slack-desc)6
-rw-r--r--multimedia/MP3Diags/doinst.sh3
6 files changed, 25 insertions, 20 deletions
diff --git a/multimedia/MP3Diags/MP3Diags.SlackBuild b/audio/MP3Diags/MP3Diags.SlackBuild
index a9c53ad3d36f8..b2a8361cd9323 100644
--- a/multimedia/MP3Diags/MP3Diags.SlackBuild
+++ b/audio/MP3Diags/MP3Diags.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for MP3Diags
-# Copyright 2015, 2016 Dominik Drobek <dominik.drobek (at) o2.pl>
+# Copyright 2015, 2016, 2020 Dominik Drobek <dominik.drobek (at) o2.pl>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@
PRGNAM=MP3Diags
VERSION=${VERSION:-1.2.03}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -77,14 +77,13 @@ CXXFLAGS="$SLKCFLAGS" \
make
lrelease src/translations/mp3diags_*.ts
-mkdir -p $PKG/usr/bin
-install -m 755 bin/MP3Diags $PKG/usr/bin
-mkdir -p $PKG/usr/share/mp3diags/translations
-install -m 644 src/translations/mp3diags_*.qm $PKG/usr/share/mp3diags/translations
-mkdir -p $PKG/usr/share/applications
-install -m 644 desktop/MP3Diags.desktop $PKG/usr/share/applications
-mkdir -p $PKG/usr/share/pixmaps
-install -m 644 -T desktop/MP3Diags32.png $PKG/usr/share/pixmaps/MP3Diags.png
+install -D -m 755 bin/$PRGNAM -t $PKG/usr/bin/
+install -D -m 644 src/translations/mp3diags_*.qm -t $PKG/usr/share/mp3diags/translations/
+install -D -m 644 desktop/$PRGNAM.desktop -t $PKG/usr/share/applications/
+
+for size in 16 22 24 32 36 40 48; do
+ install -D -m 644 desktop/${PRGNAM}${size}.png $PKG/usr/share/icons/hicolor/${size}x${size}/apps/$PRGNAM.png
+done
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
diff --git a/multimedia/MP3Diags/MP3Diags.info b/audio/MP3Diags/MP3Diags.info
index 60944a07257a6..2e78dce24b80e 100644
--- a/multimedia/MP3Diags/MP3Diags.info
+++ b/audio/MP3Diags/MP3Diags.info
@@ -1,10 +1,10 @@
PRGNAM="MP3Diags"
VERSION="1.2.03"
HOMEPAGE="http://mp3diags.sourceforge.net/"
-DOWNLOAD="http://sourceforge.net/projects/mp3diags/files/mp3diags-src/MP3Diags-1.2.03.tar.gz"
+DOWNLOAD="https://sourceforge.net/projects/mp3diags/files/mp3diags-src/MP3Diags-1.2.03.tar.gz"
MD5SUM="9a749bb903dc9941877983c854e18e02"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Dominik Drobek"
-EMAIL="dominik.drobek@o2.pl"
+EMAIL="dominik.drobek (at) o2.pl"
diff --git a/multimedia/MP3Diags/README b/audio/MP3Diags/README
index f0844da0298b9..de27c167690df 100644
--- a/multimedia/MP3Diags/README
+++ b/audio/MP3Diags/README
@@ -1,7 +1,7 @@
MP3Diags is an application that allows users to identify problems
-with their mp3 files. It is able to identify more than 50 different
+with their MP3 files. It is able to identify more than 50 different
issues, and provides the means to fix many of them. The application
-also supports editing of mp3 tags.
+also supports editing of MP3 tags.
The source package does not include documentation. Manuals are
available on the project's website.
diff --git a/audio/MP3Diags/doinst.sh b/audio/MP3Diags/doinst.sh
new file mode 100644
index 0000000000000..65c7e2eeb9aa5
--- /dev/null
+++ b/audio/MP3Diags/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/multimedia/MP3Diags/slack-desc b/audio/MP3Diags/slack-desc
index f25aab16caacf..b3a2ee3aaa934 100644
--- a/multimedia/MP3Diags/slack-desc
+++ b/audio/MP3Diags/slack-desc
@@ -6,12 +6,12 @@
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
-MP3Diags: MP3Diags (mp3 file diagnosis and repair tool)
+MP3Diags: MP3Diags (MP3 file diagnosis and repair tool)
MP3Diags:
MP3Diags: MP3Diags is an application that allows users to identify problems
-MP3Diags: with their mp3 files. It is able to identify more than 50 different
+MP3Diags: with their MP3 files. It is able to identify more than 50 different
MP3Diags: issues, and provides the means to fix many of them. The application
-MP3Diags: also supports editing of mp3 tags.
+MP3Diags: also supports editing of MP3 tags.
MP3Diags:
MP3Diags: Homepage: http://mp3diags.sourceforge.net/
MP3Diags:
diff --git a/multimedia/MP3Diags/doinst.sh b/multimedia/MP3Diags/doinst.sh
deleted file mode 100644
index 5fb28930db0b9..0000000000000
--- a/multimedia/MP3Diags/doinst.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-if [ -x /usr/bin/update-desktop-database ]; then
- /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
-fi