From 130194405884cd476d1421caae47f972d1032cda Mon Sep 17 00:00:00 2001 From: Peter Bui Date: Sun, 11 Aug 2019 15:42:44 -0400 Subject: [PATCH] python-exifread: update to 2.2.0. - Switch to github for archive - Update maintainer email - Add alternative for EXIF.py - Add temporary fix for package version --- srcpkgs/python-exifread/template | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/srcpkgs/python-exifread/template b/srcpkgs/python-exifread/template index 700f80b0495..853f885fff8 100644 --- a/srcpkgs/python-exifread/template +++ b/srcpkgs/python-exifread/template @@ -1,19 +1,25 @@ # Template file for 'python-exifread' pkgname=python-exifread -version=2.1.2 -revision=3 +version=2.2.0 +revision=1 archs=noarch -wrksrc="ExifRead-${version}" +wrksrc="exif-py-${version}" build_style="python-module" +pycompile_module="exifread" hostmakedepends="python-setuptools python3-setuptools" depends="python" -pycompile_module="exifread" short_desc="Python module to extract Exif metadata (Python2)" -maintainer="Peter Bui " -homepage="https://github.com/ianare/exif-py" +maintainer="Peter Bui " license="BSD" -distfiles="${PYPI_SITE}/E/ExifRead/ExifRead-${version}.tar.gz" -checksum=79e244f2eb466709029e8806fe5e2cdd557870c3db5f68954db0ef548d9320ad +homepage="https://github.com/ianare/exif-py" +distfiles="https://github.com/ianare/exif-py/archive/${version}.tar.gz" +checksum=55b8dbdfa1c55da50a0b989cbcd591bb996f36adff27cc207b350b25d76d2828 +alternatives="EXIF:EXIF.py:/usr/bin/EXIF.py2" + +pre_build() { + # Upstream didn't update version in this file + sed -i "s/2.1.2/${version}/" exifread/__init__.py +} post_install() { vlicense LICENSE.txt @@ -24,7 +30,9 @@ python3-exifread_package() { depends="python3" pycompile_module="exifread" short_desc="${short_desc/Python2/Python3}" + alternatives="EXIF:EXIF.py:/usr/bin/EXIF.py3" pkg_install() { + vmove usr/bin/EXIF.py3 vmove usr/lib/python3* vlicense LICENSE.txt }