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
This commit is contained in:
parent
7547c9f57f
commit
1301944058
1 changed files with 16 additions and 8 deletions
|
@ -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 <pnutzh4x0r@gmail.com>"
|
||||
homepage="https://github.com/ianare/exif-py"
|
||||
maintainer="Peter Bui <pbui@github.bx612.space>"
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue