From b00fb00cdc1a726374d954351c401eff03b7c371 Mon Sep 17 00:00:00 2001 From: lemmi Date: Sun, 7 Jan 2018 13:04:25 +0100 Subject: [PATCH] python-qrcode: add python3 module --- srcpkgs/python-qrcode/template | 17 ++++++++++++++--- srcpkgs/python3-qrcode | 1 + 2 files changed, 15 insertions(+), 3 deletions(-) create mode 120000 srcpkgs/python3-qrcode diff --git a/srcpkgs/python-qrcode/template b/srcpkgs/python-qrcode/template index f2dc2e55d50..8a336fef0d5 100644 --- a/srcpkgs/python-qrcode/template +++ b/srcpkgs/python-qrcode/template @@ -1,12 +1,12 @@ # Template file for 'python-qrcode' pkgname=python-qrcode version=5.3 -revision=2 +revision=3 noarch=yes wrksrc="qrcode-${version}" -build_style=python2-module +build_style=python-module pycompile_module="qrcode" -hostmakedepends="python-setuptools" +hostmakedepends="python-setuptools python3-setuptools" depends="python-six" short_desc="QR Code image generator (Python2)" maintainer="Charles E. Lehner " @@ -18,3 +18,14 @@ checksum=4115ccee832620df16b659d4653568331015c718a754855caf5930805d76924e post_install() { vlicense LICENSE } + +python3-qrcode_package() { + noarch=yes + depends="python3-six" + pycompile_module="pyaes" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + vlicense LICENSE + } +} diff --git a/srcpkgs/python3-qrcode b/srcpkgs/python3-qrcode new file mode 120000 index 00000000000..23e05902ac1 --- /dev/null +++ b/srcpkgs/python3-qrcode @@ -0,0 +1 @@ +python-qrcode/ \ No newline at end of file