Date: Monday, March 13, 2023 @ 19:51:46
  Author: polyzen
Revision: 1419762

Pull python-mpv into the repos

Added:
  python-mpv/
  python-mpv/repos/
  python-mpv/trunk/
  python-mpv/trunk/PKGBUILD

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

Added: python-mpv/trunk/PKGBUILD
===================================================================
--- python-mpv/trunk/PKGBUILD                           (rev 0)
+++ python-mpv/trunk/PKGBUILD   2023-03-13 19:51:46 UTC (rev 1419762)
@@ -0,0 +1,35 @@
+# Maintainer: Daniel M. Capella <[email protected]>
+# Contributor: Caltlgin Stsodaat <[email protected]>
+# Contributor: Ekin Dursun <[email protected]>
+
+pkgname=python-mpv
+pkgver=1.0.3
+pkgrel=3
+pkgdesc='Python interface to the awesome mpv media player'
+arch=('any')
+url=https://github.com/jaseg/python-mpv
+_url_pypi=https://pypi.org/project/python-mpv
+license=('GPL' 'LGPL')
+depends=('mpv' 'python')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
+             'python-wheel')
+checkdepends=('python-pytest' 'python-xvfbwrapper')
+optdepends=('python-pillow: for raw screenshot support')
+source=("https://github.com/jaseg/$pkgname/archive/v$pkgver/$pkgname-$pkgver.tar.gz";)
+b2sums=('0701147415c920be4ec65151ed7844bb36c275bcc64ae07d4ece9a515a96ba09097a8f2282eb7bbb74e8dc143d14f9a0aebdfadad53e0e9e4d62fcde734c7d17')
+
+build() {
+  cd $pkgname-$pkgver
+  python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+  cd $pkgname-$pkgver
+  pytest
+}
+
+package() {
+  cd $pkgname-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm644 'README.rst' -t "$pkgdir"/usr/share/doc/$pkgname
+}

Reply via email to