aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-exifread/APKBUILD
blob: bf13d8599ba3253dbcb4516afa0cd7a206726f38 (plain) (blame)
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
34
35
# Maintainer:
pkgname=py3-exifread
_pkgname=ExifRead
pkgver=2.2.0
pkgrel=1
pkgdesc="Read Exif metadata from tiff and jpeg files"
options="!check" # No testsuite
url="https://github.com/ianare/exif-py"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/ianare/exif-py/archive/$pkgver.tar.gz"

builddir="$srcdir"/exif-py-$pkgver

replaces="py-exifread" # Backwards compatibility
provides="py-exifread=$pkgver-r$pkgrel" # Backwards compatibility

prepare() {
	default_prepare
	sed -i "s/2.1.2/$version/" exifread/__init__.py
}

build() {
	cd "$builddir"
	python3 setup.py build
}

package() {
	cd "$builddir"
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="a1e6b27e7092ef8ce8c1a6c5fe095f0641ff942aa4bcd2a9f96eda688fe8cf7544bd6b9e48b4b29586906dac95ed717578de6b8bb691d8a4a1864992da0e00f5  py3-exifread-2.2.0.tar.gz"