Date: Friday, April 7, 2023 @ 05:56:39
Author: felixonmars
Revision: 1440692
archrelease: copy trunk to community-staging-any
Added:
python-mpv/repos/community-staging-any/
python-mpv/repos/community-staging-any/PKGBUILD
(from rev 1440691, python-mpv/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: python-mpv/repos/community-staging-any/PKGBUILD (from rev 1440691,
python-mpv/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-07 05:56:39 UTC (rev 1440692)
@@ -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=4
+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
+}