aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sublime-music/APKBUILD
blob: 0c053112590b3563c4979e31063bb9ae87f4caa6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Contributor: Alex McGrath <amk@amk.ie>
# Maintainer: Alex McGrath <amk@amk.ie>
pkgname=sublime-music
pkgver=0.11.13
pkgrel=0
pkgdesc="A native, GTK3 Subsonic client for the Linux Desktop"
url="https://sublimemusic.app"
arch="all !s390x !ppc64le" # py3-mpv doesnt work on these
options="!check" # tests fail
license="GPL-3.0-or-later"
depends="python3 py3-bleach py3-dataclasses-json py3-dateutil py3-deepdiff py3-fuzzywuzzy
	py3-gobject3 py3-levenshtein py3-mpv py3-peewee py3-requests py3-semver py3-pychromecast
	py3-bottle py3-keyring libnotify"
makedepends="py3-pip poetry"
source="sublime-music-$pkgver.tar.gz::https://gitlab.com/sumner/sublime-music/-/archive/v$pkgver/sublime-music-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	# poetry is buggy and doesn't include python source files if it is built in
	# the default directory...?
	mkdir -p /tmp/$pkgname && cp -r . /tmp/$pkgname && cd /tmp/$pkgname
	poetry build --format wheel
}

package() {
	python3 -m pip install \
		--no-warn-script-location --ignore-installed --no-deps --root="$pkgdir" \
		/tmp/$pkgname/dist/sublime_music-$pkgver-py3-none-any.whl
}

sha512sums="
813778e35fcb2d83da7da6c1f514b49a321314ebcbff8c524141857e0643426b1bc8a8739171605bec389f3077c6e343e1b9183ac3c981b79f00668eb2d9ce37  sublime-music-0.11.13.tar.gz
"