1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/py3-mpv/APKBUILD
2023-02-27 12:07:05 +00:00

36 lines
929 B
Text

# Contributor: Alex McGrath <amk@amk.ie>
# Maintainer: Alex McGrath <amk@amk.ie>
pkgname=py3-mpv
pkgver=1.0.3
pkgrel=0
pkgdesc="Python interface to the mpv media player"
url="https://github.com/jaseg/python-mpv"
arch="noarch"
license="MIT"
depends="python3 mpv-libs"
makedepends="
py3-setuptools
py3-gpep517
py3-installer
py3-wheel
"
options="!check" # tests require unpackaged xvfbwrapper
# release 1.0.3 has a typo where the version is vv$pkgver rather than v$pkgver
source="python-mpv-$pkgver.tar.gz::https://github.com/jaseg/python-mpv/archive/vv$pkgver.tar.gz"
builddir="$srcdir/python-mpv-vv$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
}
sha512sums="
1f1e3e7d89c7aef1e47a61ea73ce5f4b39081305db178fb2424b8c86613402eb6449b05e33a38bef61ad71a0f1d776df406417be48dffeadb157b960c4f4a2d9 python-mpv-1.0.3.tar.gz
"