blob: 5f79497c0a99bb50d29e020bc9c5bff005c4ca6c (
plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Maintainer: Rubin Simons <me@rubin55.org>
pkgname=tidal-dl-ng
_pkgname=${pkgname//-/_}
pkgver=0.25.6
pkgrel=4
pkgdesc='A tool for downloading music and albums from TIDAL'
arch=(any)
url='https://pypi.org/project/tidal-dl-ng/'
license=(AGPL-3.0-only)
depends=(
'python>=3.13'
'python-requests'
'python-mutagen'
'python-pycryptodome'
'python-tidalapi'
'python-dataclasses-json'
'python-pathvalidate'
'python-m3u8'
'python-coloredlogs'
'python-rich'
'python-toml'
'python-typer'
'python-python-ffmpeg'
'pyside6'
'python-pyqtdarktheme'
'python-darkdetect'
)
makedepends=(
'python-poetry-core'
'python-installer'
'python-build'
)
source=(
"https://files.pythonhosted.org/packages/source/t/$_pkgname/$_pkgname-$pkgver.tar.gz"
"tidal-dl-ng"
"tidal-dl-ng-gui"
"tidal-dl-ng.desktop"
)
sha256sums=('4c759f531411f3fa5c9a95805e74cc7da6b10a39dd87a13b9db82c283f028570'
'1d2f9b06b7bba762f9a8770b163e001e5044a38b9d5befa8ea44fa3c98bcf172'
'ecdc2868d0df9fa41e3bca50f3f0bcfede7543b54700f45b2095b9662da6dd9c'
'd31967428982ea704f7111959faa821772ddcc5290f06350b4209615d08c27d0')
prepare() {
cd "$_pkgname-$pkgver"
rm -rf dist
}
build() {
cd "$_pkgname-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$_pkgname-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
# Install scripts
install -Dm755 "${srcdir}/tidal-dl-ng" "${pkgdir}/usr/bin/tidal-dl-ng"
install -Dm755 "${srcdir}/tidal-dl-ng-gui" "${pkgdir}/usr/bin/tidal-dl-ng-gui"
# Install desktop file and icon
install -Dm755 "${srcdir}/tidal-dl-ng.desktop" "${pkgdir}/usr/share/applications/tidal-dl-ng.desktop"
install -Dm644 "${pkgdir}/usr/lib/python3.13/site-packages/tidal_dl_ng/ui/icon.png" "${pkgdir}/usr/share/pixmaps/tidal-dl-ng.png"
}
|