From d879f8c61e767d2b3b57b4a7e1cacfbe226d4659 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sun, 20 Sep 2020 17:23:34 +0700 Subject: [PATCH] python-pyzbar: drop package --- srcpkgs/python-pyzbar/template | 35 --------------------------------- srcpkgs/python3-pyzbar | 1 - srcpkgs/python3-pyzbar/template | 21 ++++++++++++++++++++ 3 files changed, 21 insertions(+), 36 deletions(-) delete mode 100644 srcpkgs/python-pyzbar/template delete mode 120000 srcpkgs/python3-pyzbar create mode 100644 srcpkgs/python3-pyzbar/template diff --git a/srcpkgs/python-pyzbar/template b/srcpkgs/python-pyzbar/template deleted file mode 100644 index 35b568eb4e6..00000000000 --- a/srcpkgs/python-pyzbar/template +++ /dev/null @@ -1,35 +0,0 @@ -# Template file for 'python-pyzbar' -pkgname=python-pyzbar -version=0.1.8 -revision=2 -archs=noarch -wrksrc="pyzbar-${version}" -build_style=python-module -pycompile_module="pyzbar" -hostmakedepends="python-setuptools python3-setuptools" -depends="libzbar python-enum34 python-pathlib" -short_desc="Read one-dimensional barcodes and QR codes" -maintainer="Enno Boland " -license="MIT" -homepage="https://github.com/NaturalHistoryMuseum/pyzbar/" -distfiles="https://github.com/NaturalHistoryMuseum/pyzbar/archive/v${version}.tar.gz" -checksum=f51c82c2864f8e5a8d44f55853e027f8cbc592324b7afffa62100f2f9c54cbdb -alternatives="pyzbar:read_zbar:/usr/bin/read_zbar.py2" - -post_install() { - vlicense LICENSE.txt - # These only exec read_zbar.py{2,3} - rm "$DESTDIR"/usr/bin/read_zbar{2,3} -} - -python3-pyzbar_package() { - archs=noarch - pycompile_module="pyzbar" - depends="libzbar python3" - alternatives="pyzbar:read_zbar:/usr/bin/read_zbar.py3" - pkg_install() { - vlicense LICENSE.txt - vmove usr/lib/python3* - vmove usr/bin/read_zbar.py3 - } -} diff --git a/srcpkgs/python3-pyzbar b/srcpkgs/python3-pyzbar deleted file mode 120000 index 18fb27518e6..00000000000 --- a/srcpkgs/python3-pyzbar +++ /dev/null @@ -1 +0,0 @@ -python-pyzbar \ No newline at end of file diff --git a/srcpkgs/python3-pyzbar/template b/srcpkgs/python3-pyzbar/template new file mode 100644 index 00000000000..b3cb17aacef --- /dev/null +++ b/srcpkgs/python3-pyzbar/template @@ -0,0 +1,21 @@ +# Template file for 'python3-pyzbar' +pkgname=python3-pyzbar +version=0.1.8 +revision=3 +wrksrc="pyzbar-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="libzbar python3" +short_desc="Read one-dimensional barcodes and QR codes" +maintainer="Enno Boland " +license="MIT" +homepage="https://github.com/NaturalHistoryMuseum/pyzbar/" +distfiles="https://github.com/NaturalHistoryMuseum/pyzbar/archive/v${version}.tar.gz" +checksum=f51c82c2864f8e5a8d44f55853e027f8cbc592324b7afffa62100f2f9c54cbdb +conflicts="python-pyzbar>=0" + +post_install() { + vlicense LICENSE.txt + # These only exec read_zbar.py + rm "$DESTDIR"/usr/bin/read_zbar +}