audio/gmusicbrowser: Fix script, .desktop, doinst.sh, ARCH.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Edinaldo P. Silva 2023-01-12 19:20:44 +00:00 committed by Willy Sudiarto Raharjo
parent f866ac52d4
commit 5d03d97f58
No known key found for this signature in database
GPG key ID: 3F617144D7238786
5 changed files with 50 additions and 13 deletions

View file

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

@ -4,7 +4,7 @@
#
# (C) 2007 Michael Wagner <lapinours@web.de>
# (C) 2014, 2015-2017 chinarulezzz <s.alex08@mail.ru>
# Copyright 2017-2020 Edinaldo P. Silva, Rio de Janeiro, Brazil.
# Copyright 2017-2023 Edinaldo P. Silva, Rio de Janeiro, Brazil.
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -28,17 +28,11 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gmusicbrowser
VERSION=${VERSION:-1.1.16}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
ARCH=noarch
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
@ -85,12 +79,14 @@ find -L . \
patch -p1 < $CWD/shimmer-layouts
make DESTDIR=$PKG install
install -Dm644 $CWD/gmusicbrowser.desktop $PKG/usr/share/applications/gmusicbrowser.desktop
mv $PKG/usr/share/man $PKG/usr && rm -rf $PKG/usr/share/man
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
mv $PKG/usr/share/doc $PKG/usr/doc
rm -f $PKG/usr/doc/$PRGNAM-$VERSION/INSTALL
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View file

@ -0,0 +1,35 @@
[Desktop Entry]
Name=gmusicbrowser
Comment=Jukebox for large collections of mp3/ogg/flac/mpc
Exec=gmusicbrowser %F
Type=Application
Icon=gmusicbrowser
Categories=Audio;AudioVideo;
StartupNotify=true
Comment[fr]=Jukebox pour de grandes collections de mp3/ogg/flac/mpc
#MimeType=audio/x-musepack;application/x-musepack;audio/musepack;application/musepack;audio/mpc;audio/x-mpc;audio/x-mp3;audio/mpeg;audio/x-mpeg;audio/x-mpeg-3;audio/mpeg3;application/ogg;application/x-ogg;audio/vorbis;audio/x-vorbis;audio/ogg;audio/x-ogg;audio/x-flac;application/x-flac;audio/flac;
Actions=PlayPause;Next;Previous;LockArtist;LockAlbum
[Desktop Action PlayPause]
Name=Play-Pause
Exec=gmusicbrowser -cmd PlayPause
Icon=media-playback-start-symbolic
[Desktop Action Next]
Name=Next
Exec=gmusicbrowser -cmd NextSong
Icon=media-skip-backward-symbolic
[Desktop Action Previous]
Name=Previous
Exec=gmusicbrowser -cmd PrevSong
Icon=media-skip-forward-symbolic
[Desktop Action LockArtist]
Name=Toggle Artist Lock
Exec=gmusicbrowser -cmd TogArtistLock
[Desktop Action LockAlbum]
Name=Toggle Album Lock
Exec=gmusicbrowser -cmd TogAlbumLock

View file

@ -1,7 +1,7 @@
PRGNAM="gmusicbrowser"
VERSION="1.1.16"
HOMEPAGE="http://gmusicbrowser.org"
DOWNLOAD="http://gmusicbrowser.org/download/gmusicbrowser-1.1.16.tar.gz"
HOMEPAGE="https://gmusicbrowser.org"
DOWNLOAD="https://gmusicbrowser.org/download/gmusicbrowser-1.1.16.tar.gz"
MD5SUM="a3c5dd46f93599b89b8273f8af013209"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""

View file

@ -10,7 +10,7 @@ gmusicbrowser: gmusicbrowser (open-source jukebox for large collections)
gmusicbrowser:
gmusicbrowser: A customizable open-source jukebox for large collections.
gmusicbrowser:
gmusicbrowser: Home page: http://gmusicbrowser.org/
gmusicbrowser: Home page: https://gmusicbrowser.org/
gmusicbrowser:
gmusicbrowser:
gmusicbrowser: