Date: Friday, March 17, 2023 @ 16:38:37 Author: arojas Revision: 471073
New audiotube dependency Added: python-ytmusicapi/ python-ytmusicapi/trunk/ python-ytmusicapi/trunk/PKGBUILD ----------+ PKGBUILD | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) Added: python-ytmusicapi/trunk/PKGBUILD =================================================================== --- python-ytmusicapi/trunk/PKGBUILD (rev 0) +++ python-ytmusicapi/trunk/PKGBUILD 2023-03-17 16:38:37 UTC (rev 471073) @@ -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 +}
