upgpkg: python-jpegiptc 1.5-2

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

View File

@@ -1,10 +1,13 @@
pkgbase = python-jpegiptc pkgbase = python-jpegiptc
pkgdesc = extract APP13 (iptc data) from image and raw copy APP13 to another image pkgdesc = extract APP13 (iptc data) from image and raw copy APP13 to another image
pkgver = 1.5 pkgver = 1.5
pkgrel = 1 pkgrel = 2
url = https://github.com/gdegoulet/JpegIPTC url = https://github.com/gdegoulet/JpegIPTC
arch = any arch = any
license = MIT license = MIT
makedepends = python-build
makedepends = python-installer
makedepends = python-wheel
makedepends = python-setuptools makedepends = python-setuptools
depends = python depends = python
source = https://github.com/gdegoulet/JpegIPTC/archive/refs/tags/v1.5.tar.gz source = https://github.com/gdegoulet/JpegIPTC/archive/refs/tags/v1.5.tar.gz

View File

@@ -3,24 +3,24 @@
pkgname=python-jpegiptc pkgname=python-jpegiptc
_name=JpegIPTC _name=JpegIPTC
pkgver=1.5 pkgver=1.5
pkgrel=1 pkgrel=2
pkgdesc="extract APP13 (iptc data) from image and raw copy APP13 to another image" pkgdesc="extract APP13 (iptc data) from image and raw copy APP13 to another image"
arch=(any) arch=(any)
url="https://github.com/gdegoulet/JpegIPTC" url="https://github.com/gdegoulet/JpegIPTC"
license=(MIT) license=(MIT)
depends=(python) 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") source=("https://github.com/gdegoulet/JpegIPTC/archive/refs/tags/v$pkgver.tar.gz")
b2sums=('f5edcadd43010429b97e65a29535ce3844f50997fabd6e2eddc057136de5bcff244c89d9d911308ffaa4b5fd0da260539fe8a58e11a87a36b9a104bd68f3eb4e') b2sums=('f5edcadd43010429b97e65a29535ce3844f50997fabd6e2eddc057136de5bcff244c89d9d911308ffaa4b5fd0da260539fe8a58e11a87a36b9a104bd68f3eb4e')
build() { build() {
cd $_name-$pkgver cd $_name-$pkgver
python setup.py build python -m build --wheel --no-isolation
} }
package() { package() {
cd $_name-$pkgver 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" install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
} }