aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-exifread/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/py3-exifread/APKBUILD')
-rw-r--r--main/py3-exifread/APKBUILD28
1 files changed, 17 insertions, 11 deletions
diff --git a/main/py3-exifread/APKBUILD b/main/py3-exifread/APKBUILD
index f8e5ba62b3..ad6a85bfc9 100644
--- a/main/py3-exifread/APKBUILD
+++ b/main/py3-exifread/APKBUILD
@@ -1,20 +1,26 @@
# Maintainer:
-pkgname=py-exifread
+pkgname=py3-exifread
_pkgname=ExifRead
-pkgver=2.1.2
-pkgrel=3
+pkgver=2.2.0
+pkgrel=0
pkgdesc="Read Exif metadata from tiff and jpeg files"
-url="https://pypi.python.org/pypi/ExifRead"
+options="!check" # No testsuite
+url="https://github.com/ianare/exif-py"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
-depends_dev=""
-makedepends="python3-dev py3-setuptools"
-install=""
-subpackages=""
-source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+makedepends="py3-setuptools"
+source="$pkgname-$pkgver.tar.gz::https://github.com/ianare/exif-py/archive/$pkgver.tar.gz"
-builddir="$srcdir"/$_pkgname-$pkgver
+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"
@@ -26,4 +32,4 @@ package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
-sha512sums="6357a96e6d5aeabe6b8eec519934e5754e09a53e5a3871254ee84f746ff8c2115dd175f1358a9d372ce2e3a062bf6f7be9d297661f5a4cf40b9c117d3f4e69d2 ExifRead-2.1.2.tar.gz"
+sha512sums="a1e6b27e7092ef8ce8c1a6c5fe095f0641ff942aa4bcd2a9f96eda688fe8cf7544bd6b9e48b4b29586906dac95ed717578de6b8bb691d8a4a1864992da0e00f5 py3-exifread-2.2.0.tar.gz"