diff --git a/audio/gmusicbrowser/doinst.sh b/audio/gmusicbrowser/doinst.sh index a99c1c016d..65c7e2eeb9 100644 --- a/audio/gmusicbrowser/doinst.sh +++ b/audio/gmusicbrowser/doinst.sh @@ -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 diff --git a/audio/gmusicbrowser/gmusicbrowser.SlackBuild b/audio/gmusicbrowser/gmusicbrowser.SlackBuild index 5768e8c330..edbacb31d9 100644 --- a/audio/gmusicbrowser/gmusicbrowser.SlackBuild +++ b/audio/gmusicbrowser/gmusicbrowser.SlackBuild @@ -4,7 +4,7 @@ # # (C) 2007 Michael Wagner # (C) 2014, 2015-2017 chinarulezzz -# 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 diff --git a/audio/gmusicbrowser/gmusicbrowser.desktop b/audio/gmusicbrowser/gmusicbrowser.desktop new file mode 100644 index 0000000000..b4ec6eecd2 --- /dev/null +++ b/audio/gmusicbrowser/gmusicbrowser.desktop @@ -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 diff --git a/audio/gmusicbrowser/gmusicbrowser.info b/audio/gmusicbrowser/gmusicbrowser.info index d8bea5ee25..1999b3b67d 100644 --- a/audio/gmusicbrowser/gmusicbrowser.info +++ b/audio/gmusicbrowser/gmusicbrowser.info @@ -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="" diff --git a/audio/gmusicbrowser/slack-desc b/audio/gmusicbrowser/slack-desc index c4fa61789b..da3d33ceb2 100644 --- a/audio/gmusicbrowser/slack-desc +++ b/audio/gmusicbrowser/slack-desc @@ -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: