From d041f8256e7f5adafd94489a8bcc86536d1b5705 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Sat, 13 Jan 2024 17:43:52 +0100 Subject: [PATCH] upgpkg: python-jpegiptc 1.5-2 switched to PEP 517 --- python-jpegiptc/.SRCINFO | 5 ++++- python-jpegiptc/PKGBUILD | 8 ++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/python-jpegiptc/.SRCINFO b/python-jpegiptc/.SRCINFO index bbc3183..1391755 100644 --- a/python-jpegiptc/.SRCINFO +++ b/python-jpegiptc/.SRCINFO @@ -1,10 +1,13 @@ pkgbase = python-jpegiptc pkgdesc = extract APP13 (iptc data) from image and raw copy APP13 to another image pkgver = 1.5 - pkgrel = 1 + pkgrel = 2 url = https://github.com/gdegoulet/JpegIPTC arch = any license = MIT + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel makedepends = python-setuptools depends = python source = https://github.com/gdegoulet/JpegIPTC/archive/refs/tags/v1.5.tar.gz diff --git a/python-jpegiptc/PKGBUILD b/python-jpegiptc/PKGBUILD index 2c7c35e..7ef03e1 100644 --- a/python-jpegiptc/PKGBUILD +++ b/python-jpegiptc/PKGBUILD @@ -3,24 +3,24 @@ pkgname=python-jpegiptc _name=JpegIPTC pkgver=1.5 -pkgrel=1 +pkgrel=2 pkgdesc="extract APP13 (iptc data) from image and raw copy APP13 to another image" arch=(any) url="https://github.com/gdegoulet/JpegIPTC" license=(MIT) depends=(python) -makedepends=(python-setuptools) +makedepends=(python-build python-installer python-wheel python-setuptools) source=("https://github.com/gdegoulet/JpegIPTC/archive/refs/tags/v$pkgver.tar.gz") b2sums=('f5edcadd43010429b97e65a29535ce3844f50997fabd6e2eddc057136de5bcff244c89d9d911308ffaa4b5fd0da260539fe8a58e11a87a36b9a104bd68f3eb4e') build() { cd $_name-$pkgver - python setup.py build + python -m build --wheel --no-isolation } package() { cd $_name-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 + python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }