Date: Saturday, April 22, 2023 @ 07:39:54
  Author: arojas
Revision: 475120

archrelease: copy trunk to community-staging-any

Added:
  python-ytmusicapi/repos/community-staging-any/
  python-ytmusicapi/repos/community-staging-any/PKGBUILD
    (from rev 475119, python-ytmusicapi/trunk/PKGBUILD)

----------+
 PKGBUILD |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Copied: python-ytmusicapi/repos/community-staging-any/PKGBUILD (from rev 
475119, python-ytmusicapi/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-22 07:39:54 UTC (rev 475120)
@@ -0,0 +1,31 @@
+# Maintainer: Antonio Rojas <[email protected]>
+# Contributor: Pekka Ristola <pekkarr [at] protonmail [dot] com>
+# Contributor: Tim Schumacher <[email protected]>
+
+_pyname=ytmusicapi
+pkgname=python-$_pyname
+pkgver=1.0.2
+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=('f798bfedd49738bece82aac15b2d97f04578ccb1572f347a350cb704df4d0e10')
+
+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
+
+  mkdir -p "$pkgdir"/usr/share/doc/$pkgname
+  cp -r docs/build/text/* "$pkgdir"/usr/share/doc/$pkgname
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}

Reply via email to