diff options
author | Edinaldo P. Silva <edps.mundognu@gmail.com> | 2023-01-12 19:20:44 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-01-14 08:50:06 +0700 |
commit | 5d03d97f58989f51365ce9e88d5cd82930d62f59 (patch) | |
tree | 2bad762c2417923ea82a04ac9f2c9e23c791cb0f /audio/gmusicbrowser | |
parent | f866ac52d4a37144a5f846d1863f54aa72c3529e (diff) |
audio/gmusicbrowser: Fix script, .desktop, doinst.sh, ARCH.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/gmusicbrowser')
-rw-r--r-- | audio/gmusicbrowser/doinst.sh | 8 | ||||
-rw-r--r-- | audio/gmusicbrowser/gmusicbrowser.SlackBuild | 14 | ||||
-rw-r--r-- | audio/gmusicbrowser/gmusicbrowser.desktop | 35 | ||||
-rw-r--r-- | audio/gmusicbrowser/gmusicbrowser.info | 4 | ||||
-rw-r--r-- | audio/gmusicbrowser/slack-desc | 2 |
5 files changed, 50 insertions, 13 deletions
diff --git a/audio/gmusicbrowser/doinst.sh b/audio/gmusicbrowser/doinst.sh index a99c1c016d48..65c7e2eeb9aa 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 5768e8c3302e..edbacb31d9c3 100644 --- a/audio/gmusicbrowser/gmusicbrowser.SlackBuild +++ b/audio/gmusicbrowser/gmusicbrowser.SlackBuild @@ -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 diff --git a/audio/gmusicbrowser/gmusicbrowser.desktop b/audio/gmusicbrowser/gmusicbrowser.desktop new file mode 100644 index 000000000000..b4ec6eecd229 --- /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 d8bea5ee251e..1999b3b67da1 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 c4fa61789beb..da3d33ceb24e 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: |