upgpkg: python-mpv-jsonipc 1.2.0-2

switched to PEP 517
This commit is contained in:
2024-01-13 17:44:18 +01:00
parent d041f8256e
commit a0b73f129d
2 changed files with 8 additions and 5 deletions

View File

@@ -1,10 +1,13 @@
pkgbase = python-mpv-jsonipc
pkgdesc = Python API to MPV using JSON IPC
pkgver = 1.2.0
pkgrel = 1
pkgrel = 2
url = https://github.com/iwalton3/python-mpv-jsonipc
arch = any
license = GPL3
makedepends = python-build
makedepends = python-installer
makedepends = python-wheel
makedepends = python-setuptools
depends = python
source = python-mpv-jsonipc-1.2.0.tar.gz::https://pypi.python.org/packages/source/p/python-mpv-jsonipc/python-mpv-jsonipc-1.2.0.tar.gz

View File

@@ -2,24 +2,24 @@
pkgname=python-mpv-jsonipc
pkgver=1.2.0
pkgrel=1
pkgrel=2
pkgdesc="Python API to MPV using JSON IPC"
arch=(any)
url="https://github.com/iwalton3/python-mpv-jsonipc"
license=(GPL3)
depends=(python)
makedepends=(python-setuptools)
makedepends=(python-build python-installer python-wheel python-setuptools)
source=("$pkgname-$pkgver.tar.gz::https://pypi.python.org/packages/source/p/$pkgname/$pkgname-$pkgver.tar.gz")
b2sums=('5c746fc9a43638b237c5e2e470260b274e1f195cbed8593a7e523b4055b629c6015fc0d8d9d05324eff74e5ca36e51c74d7d8e2f2a236eefce5f81408cd025e9')
build() {
cd $pkgname-$pkgver
python setup.py build
python -m build --wheel --no-isolation
}
package() {
cd $pkgname-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
python -m installer --destdir="$pkgdir" dist/*.whl
}
# vim:set ts=2 sw=2 et: