diff options
author | zoorat | 2024-04-01 01:06:00 +0600 |
---|---|---|
committer | zoorat | 2024-04-01 01:06:00 +0600 |
commit | 290eb8715b764788940ba3f0d70e6845911862ad (patch) | |
tree | 5bb7dffed35098d4e6fc018ad2358d7a508be95b /PKGBUILD | |
parent | 07f0a08f21ce93b181b81fad34b9cc2f3debc9a8 (diff) | |
download | aur-python-spotdl.tar.gz |
mod: source is now github because of archlinux RFC 20
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -7,7 +7,7 @@ pkgname=python-spotdl pkgver=4.2.5 -pkgrel=2 +pkgrel=3 pkgdesc='Download your Spotify playlists and songs along with album art and metadata (from YouTube if a match is found).' arch=('any') @@ -42,28 +42,27 @@ depends=( 'yt-dlp' ) makedepends=('python-build' 'python-installer' 'python-wheel' 'python-poetry-core') -checkdepends=('python-pytest-asyncio') +checkdepends=('python-pytest-asyncio' 'python-pytest-mock') provides=("$pkgname" 'spotdl') options=(strip emptydirs zipman) -source=("https://pypi.io/packages/source/s/spotdl/spotdl-$pkgver.tar.gz") -# source=("https://github.com/spotDL/spotify-downloader/archive/refs/tags/v$pkgver.zip") -b2sums=('e7b1ba0c7bebceb0d78ea0b4974b7a2a46612f03a3b3e457f8f996d68b9b23df0c199448956ad5f4398effbe5d59d51c43c310f998a8d4798d07bb89f6c51a5d') +source=("https://github.com/spotDL/spotify-downloader/archive/refs/tags/v$pkgver.zip") +b2sums=('bad96199ae1768e85efbc992603b911b3967624b26b65e1e3d7de0cbdcba193bbc04f64210c390017cb8b08d4a277907ebf8d9236e5247a2e56e4e2d50fb8c1b') # Document: https://wiki.archlinux.org/title/Python_package_guidelines build() { - cd spotdl-$pkgver + cd spotify-downloader-$pkgver # https://github.com/python-poetry/poetry/issues/5547 python -m build --wheel --no-isolation } check() { - cd spotdl-$pkgver + cd spotify-downloader-$pkgver pytest || echo 'Tests failed!' } package() { - cd spotdl-$pkgver + cd spotify-downloader-$pkgver python -m installer --destdir="$pkgdir" dist/*.whl install -vDm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |