summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1bf0587e9997880618d18b5709b6f2baf62314be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: Giovanni Harting <539@idlegandalf.com>

pkgname=python-jpegiptc
_name=JpegIPTC
pkgver=1.5
pkgrel=3
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-build python-installer python-wheel python-setuptools)
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
b2sums=('f5edcadd43010429b97e65a29535ce3844f50997fabd6e2eddc057136de5bcff244c89d9d911308ffaa4b5fd0da260539fe8a58e11a87a36b9a104bd68f3eb4e')

build() {
  cd $_name-$pkgver
  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
}

# vim:set ts=2 sw=2 et: