void-packages/srcpkgs/python-exifread/template

36 lines
978 B
Bash

# Template file for 'python-exifread'
pkgname=python-exifread
version=2.3.1
revision=1
wrksrc="exif-py-${version}"
build_style="python-module"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Python module to extract Exif metadata (Python2)"
maintainer="Peter Bui <pbui@github.bx612.space>"
license="BSD-3-Clause"
homepage="https://github.com/ianare/exif-py"
distfiles="https://github.com/ianare/exif-py/archive/${version}.tar.gz"
checksum=b6b012d72df9af6e8a4fb439914f3a293f0a63c2087c21e94f5b6e1221de45f4
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
}
python3-exifread_package() {
depends="python3"
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
}
}