diff --git a/srcpkgs/python-exifread/template b/srcpkgs/python-exifread/template new file mode 100644 index 00000000000..ff98fbf1b7f --- /dev/null +++ b/srcpkgs/python-exifread/template @@ -0,0 +1,33 @@ +# Template file for 'python-exifread' +pkgname=python-exifread +version=2.1.2 +revision=1 +noarch=yes +wrksrc="ExifRead-${version}" +build_style="python-module" +python_versions="2.7 3.4" +hostmakedepends="python-setuptools python3.4-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" +license="BSD" +distfiles="${PYPI_SITE}/E/ExifRead/ExifRead-${version}.tar.gz" +checksum=79e244f2eb466709029e8806fe5e2cdd557870c3db5f68954db0ef548d9320ad + +post_install() { + vlicense LICENSE.txt +} + +python3.4-exifread_package() { + noarch=yes + depends="python3.4" + pycompile_version="3.4" + pycompile_module="exifread" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/lib/python3.4 + vlicense LICENSE.txt + } +} diff --git a/srcpkgs/python3.4-exifread b/srcpkgs/python3.4-exifread new file mode 120000 index 00000000000..652744bb61e --- /dev/null +++ b/srcpkgs/python3.4-exifread @@ -0,0 +1 @@ +python-exifread \ No newline at end of file