upgpkg: python-jpegiptc 1.5-3

enable tests; formatting
This commit is contained in:
Giovanni Harting 2024-03-23 19:56:25 +01:00
parent 79c5eb3c97
commit 4233fe865b
2 changed files with 13 additions and 7 deletions

View File

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

View File

@ -3,14 +3,14 @@
pkgname=python-jpegiptc
_name=JpegIPTC
pkgver=1.5
pkgrel=2
pkgdesc="extract APP13 (iptc data) from image and raw copy APP13 to another image"
pkgrel=3
pkgdesc='extract APP13 (iptc data) from image and raw copy APP13 to another image'
arch=(any)
url="https://github.com/gdegoulet/JpegIPTC"
url='https://github.com/gdegoulet/JpegIPTC'
license=(MIT)
depends=(python)
makedepends=(python-build python-installer python-wheel python-setuptools)
source=("https://github.com/gdegoulet/JpegIPTC/archive/refs/tags/v$pkgver.tar.gz")
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
b2sums=('f5edcadd43010429b97e65a29535ce3844f50997fabd6e2eddc057136de5bcff244c89d9d911308ffaa4b5fd0da260539fe8a58e11a87a36b9a104bd68f3eb4e')
build() {
@ -18,10 +18,16 @@ build() {
python -m build --wheel --no-isolation
}
check() {
cd $_name-$pkgver
python test.py
python test_strange.py
}
package() {
cd $_name-$pkgver
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
}
# vim:set ts=2 sw=2 et: