Date: Friday, March 17, 2023 @ 16:38:54
Author: arojas
Revision: 471074
archrelease: copy trunk to extra-any
Added:
python-ytmusicapi/repos/
python-ytmusicapi/repos/extra-any/
python-ytmusicapi/repos/extra-any/PKGBUILD
(from rev 471073, python-ytmusicapi/trunk/PKGBUILD)
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Copied: python-ytmusicapi/repos/extra-any/PKGBUILD (from rev 471073,
python-ytmusicapi/trunk/PKGBUILD)
===================================================================
--- repos/extra-any/PKGBUILD (rev 0)
+++ repos/extra-any/PKGBUILD 2023-03-17 16:38:54 UTC (rev 471074)
@@ -0,0 +1,30 @@
+# Maintainer: Antonio Rojas <[email protected]>
+# Contributor: Pekka Ristola <pekkarr [at] protonmail [dot] com>
+# Contributor: Tim Schumacher <[email protected]>
+
+_pyname=ytmusicapi
+pkgname=python-$_pyname
+pkgver=0.25.0
+pkgrel=2
+pkgdesc='Unofficial API for YouTube Music'
+arch=(any)
+url='https://github.com/sigma67/ytmusicapi'
+license=(MIT)
+depends=(python-requests)
+makedepends=(python-build python-installer python-setuptools-scm python-wheel
python-sphinx)
+source=(https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_pyname-$pkgver.tar.gz)
+sha256sums=('8695ffaa6451c2f084d0de6321697a01991c61a55588adf49cf6c9c32643fab3')
+
+build() {
+ cd $_pyname-$pkgver
+ python -m build --wheel --no-isolation
+ make -C docs text
+}
+
+package() {
+ cd $_pyname-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ install -Dm644 docs/build/text/* -t "$pkgdir"/usr/share/doc/$pkgname
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}