Package Details: sublime-music-git v0.11.16.r49.g430895e-1

Git Clone URL: https://aur.archlinux.org/sublime-music-git.git (read-only, click to copy)
Package Base: sublime-music-git
Description: A native Subsonic/Airsonic/*sonic client for Linux. Built using Python and GTK+.
Upstream URL: https://sublimemusic.app
Licenses: GPL3
Conflicts: sublime-music
Provides: sublime-music
Submitter: sumner
Maintainer: RealStickman
Last Packager: RealStickman
Votes: 1
Popularity: 0.000000
First Submitted: 2020-08-01 17:11 (UTC)
Last Updated: 2023-01-14 13:12 (UTC)

Dependencies (21)

Required by (0)

Sources (2)

Latest Comments

RealStickman 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;

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

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.