Package Details: sublime-music-git 0.12.0.r17.g0b4ba69-2

Git Clone URL: https://aur.archlinux.org/sublime-music-git.git (read-only, click to copy)
Package Base: sublime-music-git
Description: A Subsonic/Airsonic/*sonic client
Upstream URL: https://github.com/sublime-music/sublime-music
Licenses: GPL-3.0-or-later
Conflicts: sublime-music
Provides: sublime-music
Submitter: sumner
Maintainer: xiota
Last Packager: xiota
Votes: 2
Popularity: 0.001004
First Submitted: 2020-08-01 17:11 (UTC)
Last Updated: 2024-06-04 13:37 (UTC)

Latest Comments

adam900710 commented on 2024-05-02 05:32 (UTC)

Failed to play any music due to an exception raised from mpv part:

Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/sublime_music/dbus/manager.py", line 24, in wrapper
    function(*args)
  File "/usr/lib/python3.12/site-packages/sublime_music/app.py", line 629, in on_play_pause
    self.play_song(self.app_config.state.current_song_index)
  File "/usr/lib/python3.12/site-packages/sublime_music/app.py", line 1415, in play_song
    song_details_future.add_done_callback(
  File "/usr/lib/python3.12/site-packages/sublime_music/adapters/manager.py", line 140, in add_done_callback
    fn(self, *args)
  File "/usr/lib/python3.12/site-packages/sublime_music/app.py", line 1416, in <lambda>
    lambda f: do_play_song(self.song_playing_order_token, f.result())
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/sublime_music/dbus/manager.py", line 24, in wrapper
    function(*args)
  File "/usr/lib/python3.12/site-packages/sublime_music/app.py", line 1166, in do_play_song
    self.player_manager.play_media(
  File "/usr/lib/python3.12/site-packages/sublime_music/players/manager.py", line 188, in play_media
    current_player.play_media(uri, progress, song)
  File "/usr/lib/python3.12/site-packages/sublime_music/players/mpv.py", line 137, in play_media
    self.mpv.command(
  File "/usr/lib/python3.12/site-packages/mpv.py", line 1227, in command
    _mpv_command_node(self.handle, ppointer, out)
  File "/usr/lib/python3.12/site-packages/mpv.py", line 142, in raise_for_ec
    raise ex
ValueError: ('Invalid value for mpv parameter', -4, (<MpvHandle object at 0x7b5945d7f3d0>, <mpv.LP_MpvNode object at 0x7b592a352dd0>, <mpv.LP_MpvNode object at 0x7b592a353250>))

exu commented on 2023-01-13 08:38 (UTC)

Updated the PKGBUILD again to get it builing once more. (change from poetry to flit)
The code lives on github now, so I changed that as well.

diff --git a/.SRCINFO b/.SRCINFO
index 7587183..2c1c700 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,12 @@
 pkgbase = sublime-music-git
    pkgdesc = A native Subsonic/Airsonic/*sonic client for Linux. Built using Python and GTK+.
-   pkgver = v0.11.10.r18.gfa81f61
+   pkgver = v0.11.16.r49.g430895e
    pkgrel = 1
    url = https://sublimemusic.app
    arch = any
    license = GPL3
    makedepends = python-pip
-   makedepends = python-poetry
+   makedepends = python-flit
    makedepends = python-sphinx
    makedepends = tar
    depends = python
@@ -14,13 +14,13 @@ pkgbase = sublime-music-git
    depends = python-dataclasses-json
    depends = python-dateutil
    depends = python-deepdiff
-   depends = python-fuzzywuzzy
    depends = python-gobject
    depends = python-levenshtein
    depends = python-mpv
    depends = python-peewee
    depends = python-requests
    depends = python-semver
+   depends = python-thefuzz
    optdepends = libnm-glib: for changing the Subsonic server address depending on what SSID you are connected to
    optdepends = libnotify: for system song notification support
    optdepends = python-keyring: support for storing passwords in the system keyring
@@ -28,8 +28,9 @@ pkgbase = sublime-music-git
    optdepends = python-bottle: support for casting downloaded files to Chromecasts on the same LAN
    provides = sublime-music
    conflicts = sublime-music
-   source = sublime-music-git::git+https://gitlab.com/sublime-music/sublime-music.git
-   md5sums = SKIP
+   source = sublime-music-git::git+https://github.com/sublime-music/sublime-music.git
+   source = sublime-music.desktop
+   sha256sums = SKIP
+   sha256sums = fd84f6b408aa78a21a2990a0b78c4851db80b7ef0f7e7573cc82b57d8abb4d0c

 pkgname = sublime-music-git
-
diff --git a/PKGBUILD b/PKGBUILD
index 4648fae..098dfa8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
 pkgbase='sublime-music-git'
 pkgname=('sublime-music-git')
 _module='sublime-music'
-pkgver=v0.11.10.r18.gfa81f61
+pkgver=v0.11.16.r49.g430895e
 pkgrel=1
 pkgdesc='A native Subsonic/Airsonic/*sonic client for Linux. Built using Python and GTK+.'
 url='https://sublimemusic.app'
@@ -15,13 +15,13 @@ depends=(
     'python-dataclasses-json'
     'python-dateutil'
     'python-deepdiff'
-    'python-fuzzywuzzy'
     'python-gobject'
     'python-levenshtein'
     'python-mpv'
     'python-peewee'
     'python-requests'
     'python-semver'
+    'python-thefuzz'
 )
 optdepends=(
     'libnm-glib: for changing the Subsonic server address depending on what SSID you are connected to'
@@ -32,16 +32,18 @@ optdepends=(
 )
 makedepends=(
     'python-pip'
-    'python-poetry'
+    'python-flit'
     'python-sphinx'
     'tar'
 )
 license=('GPL3')
 arch=('any')
 source=(
-    'sublime-music-git::git+https://gitlab.com/sublime-music/sublime-music.git'
+    'sublime-music-git::git+https://github.com/sublime-music/sublime-music.git'
+    'sublime-music.desktop'
 )
-md5sums=('SKIP')
+sha256sums=('SKIP'
+            'fd84f6b408aa78a21a2990a0b78c4851db80b7ef0f7e7573cc82b57d8abb4d0c')

 pkgver() {
     cd "${srcdir}/${pkgname}"
@@ -51,17 +53,16 @@ pkgver() {

 build() {
     cd "${srcdir}/${pkgname}"
-    poetry build
+    flit build
 }

 package() {
-    cd "${srcdir}/${pkgname}"
-    pip install dist/sublime_music-*.tar.gz --root="${pkgdir}"
+    python -m installer --destdir="$pkgdir" "sublime-music-git/dist"/*.whl

     # Move all of the package data resources to ${pkgdir}/usr/share/sublime-music
     data_dir=${pkgdir}/usr/share/sublime-music
     mkdir -p $data_dir/adapters/subsonic $data_dir/dbus $data_dir/ui
-    pushd ${pkgdir}/usr/lib/python3.9/site-packages/sublime_music
+    pushd ${pkgdir}/usr/lib/python3.*/site-packages/sublime_music
     mv adapters/icons $data_dir/adapters
     mv adapters/images $data_dir/adapters
     mv adapters/subsonic/icons $data_dir/adapters/subsonic
@@ -71,15 +72,15 @@ package() {
     popd

     desktop-file-install --dir=${pkgdir}/usr/share/applications sublime-music.desktop
-    install -Dm644 sublime-music.metainfo.xml "${pkgdir}/usr/share/metainfo/sublime-music.metainfo.xml"
+    install -Dm644 "${srcdir}/sublime-music-git/sublime-music.metainfo.xml" "${pkgdir}/usr/share/metainfo/sublime-music.metainfo.xml"

-    pushd docs
+    pushd "${srcdir}/sublime-music-git/docs"
     make man
     install -Dm644 ./_build/man/sublime-music.1 "${pkgdir}/usr/share/man/man1/sublime-music.1"
     popd

-    pushd logo/rendered
-    for size in 16 22 32 48 64 72 96 128 192 512 1024; do
+    pushd "${srcdir}/sublime-music-git/logo/rendered"
+    for size in 16 22 24 32 36 48 64 72 96 128 192 512 1024; do
         install -Dm644 ${size}.png ${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/sublime-music.png
     done
     popd
diff --git a/sublime-music.desktop b/sublime-music.desktop
new file mode 100644
index 0000000..49a3471
--- /dev/null
+++ b/sublime-music.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.1
+Type=Application
+Name=Sublime Music
+Name[es]=Música Sublime
+GenericName=Music Player
+Comment=Native Subsonic client for Linux
+Exec=sublime-music
+Icon=sublime-music
+Terminal=false
+Categories=AudioVideo;Audio;Music;

exu commented on 2022-12-09 08:51 (UTC) (edited on 2022-12-09 10:32 (UTC) by exu)

I did some patching of the current PKGBUILD. Now the package builds again, though there's still stuff to update or remove.

Edit: Changed the patch below again after making some more changes and fixing what I broke previously.

diff --git a/.SRCINFO b/.SRCINFO
index 7587183..fc2fdb4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
 pkgbase = sublime-music-git
    pkgdesc = A native Subsonic/Airsonic/*sonic client for Linux. Built using Python and GTK+.
-   pkgver = v0.11.10.r18.gfa81f61
+   pkgver = v0.11.16.r22.gfd40be6
    pkgrel = 1
    url = https://sublimemusic.app
    arch = any
@@ -29,7 +29,8 @@ pkgbase = sublime-music-git
    provides = sublime-music
    conflicts = sublime-music
    source = sublime-music-git::git+https://gitlab.com/sublime-music/sublime-music.git
-   md5sums = SKIP
+   source = sublime-music.desktop
+   sha256sums = SKIP
+   sha256sums = fd84f6b408aa78a21a2990a0b78c4851db80b7ef0f7e7573cc82b57d8abb4d0c

 pkgname = sublime-music-git
-
diff --git a/PKGBUILD b/PKGBUILD
index 4648fae..36048e6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
 pkgbase='sublime-music-git'
 pkgname=('sublime-music-git')
 _module='sublime-music'
-pkgver=v0.11.10.r18.gfa81f61
+pkgver=v0.11.16.r22.gfd40be6
 pkgrel=1
 pkgdesc='A native Subsonic/Airsonic/*sonic client for Linux. Built using Python and GTK+.'
 url='https://sublimemusic.app'
@@ -40,8 +40,10 @@ license=('GPL3')
 arch=('any')
 source=(
     'sublime-music-git::git+https://gitlab.com/sublime-music/sublime-music.git'
+    'sublime-music.desktop'
 )
-md5sums=('SKIP')
+sha256sums=('SKIP'
+            'fd84f6b408aa78a21a2990a0b78c4851db80b7ef0f7e7573cc82b57d8abb4d0c')

 pkgver() {
     cd "${srcdir}/${pkgname}"
@@ -55,13 +57,12 @@ build() {
 }

 package() {
-    cd "${srcdir}/${pkgname}"
-    pip install dist/sublime_music-*.tar.gz --root="${pkgdir}"
+    python -m installer --destdir="$pkgdir" "sublime-music-git/dist"/*.whl

     # Move all of the package data resources to ${pkgdir}/usr/share/sublime-music
     data_dir=${pkgdir}/usr/share/sublime-music
     mkdir -p $data_dir/adapters/subsonic $data_dir/dbus $data_dir/ui
-    pushd ${pkgdir}/usr/lib/python3.9/site-packages/sublime_music
+    pushd ${pkgdir}/usr/lib/python3.*/site-packages/sublime_music
     mv adapters/icons $data_dir/adapters
     mv adapters/images $data_dir/adapters
     mv adapters/subsonic/icons $data_dir/adapters/subsonic
@@ -71,15 +72,15 @@ package() {
     popd

     desktop-file-install --dir=${pkgdir}/usr/share/applications sublime-music.desktop
-    install -Dm644 sublime-music.metainfo.xml "${pkgdir}/usr/share/metainfo/sublime-music.metainfo.xml"
+    install -Dm644 "${srcdir}/sublime-music-git/sublime-music.metainfo.xml" "${pkgdir}/usr/share/metainfo/sublime-music.metainfo.xml"

-    pushd docs
+    pushd "${srcdir}/sublime-music-git/docs"
     make man
     install -Dm644 ./_build/man/sublime-music.1 "${pkgdir}/usr/share/man/man1/sublime-music.1"
     popd

-    pushd logo/rendered
-    for size in 16 22 32 48 64 72 96 128 192 512 1024; do
+    pushd "${srcdir}/sublime-music-git/logo/rendered"
+    for size in 16 22 24 32 36 48 64 72 96 128 192 512 1024; do
         install -Dm644 ${size}.png ${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/sublime-music.png
     done
     popd
diff --git a/sublime-music.desktop b/sublime-music.desktop
new file mode 100644
index 0000000..49a3471
--- /dev/null
+++ b/sublime-music.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.1
+Type=Application
+Name=Sublime Music
+Name[es]=Música Sublime
+GenericName=Music Player
+Comment=Native Subsonic client for Linux
+Exec=sublime-music
+Icon=sublime-music
+Terminal=false
+Categories=AudioVideo;Audio;Music;

sumner commented on 2020-11-24 15:52 (UTC)

dataclasses should be built-in to Python 3.8...

$ python
Python 3.8.6 (default, Sep 30 2020, 04:00:38)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import dataclasses
>>> dataclasses
<module 'dataclasses' from '/usr/lib/python3.8/dataclasses.py'>

halcek commented on 2020-11-24 15:47 (UTC) (edited on 2020-11-24 15:49 (UTC) by halcek)

@sumner Oh! I think it may be because python-dataclasses is not declared a dependency of python-dataclasses-json?

sumner commented on 2020-11-24 03:17 (UTC)

That is strange... Those should all be dependencies of python-dataclasses-json, so Sublime Music should require those through its dependency on python-dataclasses-json.

halcek commented on 2020-11-22 16:18 (UTC) (edited on 2020-11-22 16:18 (UTC) by halcek)

@sumner Thank you. That fixes it for x86_64, but I have found that adding 'python-dataclasses' 'python-marshmallow-enum' 'python-stringcase' as dependencies will also make it work on the aarch64 architecture too.

sumner commented on 2020-11-22 00:13 (UTC)

@halcek, should be fixed now.

halcek commented on 2020-11-21 22:49 (UTC)

I am getting the error: python: can't open file 'setup.py': [Errno 2] No such file, or directory , when I try to makepkg it.