audio/MP3Diags: Update script.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Dominik Drobek 2020-02-23 23:28:41 +07:00 committed by Willy Sudiarto Raharjo
parent b6064771d9
commit ede67b9b9a
6 changed files with 25 additions and 20 deletions

View File

@ -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

View File

@ -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"

View File

@ -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.

9
audio/MP3Diags/doinst.sh Normal file
View File

@ -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

View File

@ -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:

View File

@ -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