From 140a4c873eaa0c43740dbe14f283ea673c052461 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 24 Sep 2020 06:47:21 +0700 Subject: [PATCH] python-exifread: drop package --- srcpkgs/python-exifread/template | 35 ------------------------------- srcpkgs/python3-exifread | 1 - srcpkgs/python3-exifread/template | 24 +++++++++++++++++++++ 3 files changed, 24 insertions(+), 36 deletions(-) delete mode 100644 srcpkgs/python-exifread/template delete mode 120000 srcpkgs/python3-exifread create mode 100644 srcpkgs/python3-exifread/template diff --git a/srcpkgs/python-exifread/template b/srcpkgs/python-exifread/template deleted file mode 100644 index cd98e20c08e..00000000000 --- a/srcpkgs/python-exifread/template +++ /dev/null @@ -1,35 +0,0 @@ -# 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 " -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 - } -} diff --git a/srcpkgs/python3-exifread b/srcpkgs/python3-exifread deleted file mode 120000 index 652744bb61e..00000000000 --- a/srcpkgs/python3-exifread +++ /dev/null @@ -1 +0,0 @@ -python-exifread \ No newline at end of file diff --git a/srcpkgs/python3-exifread/template b/srcpkgs/python3-exifread/template new file mode 100644 index 00000000000..b66e0636a71 --- /dev/null +++ b/srcpkgs/python3-exifread/template @@ -0,0 +1,24 @@ +# Template file for 'python3-exifread' +pkgname=python3-exifread +version=2.3.1 +revision=2 +wrksrc="exif-py-${version}" +build_style="python3-module" +hostmakedepends="python3-setuptools" +depends="python3" +short_desc="Python module to extract Exif metadata (Python3)" +maintainer="Peter Bui " +license="BSD-3-Clause" +homepage="https://github.com/ianare/exif-py" +distfiles="https://github.com/ianare/exif-py/archive/${version}.tar.gz" +checksum=b6b012d72df9af6e8a4fb439914f3a293f0a63c2087c21e94f5b6e1221de45f4 +conflicts="python-exifread>=0" + +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 +}