summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD15
2 files changed, 14 insertions, 19 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1ae9356e8d3..457fd761fd0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,21 +1,14 @@
# Generated by mksrcinfo v8
-# Thu Oct 19 10:44:02 UTC 2017
+# Sun Nov 12 16:01:28 UTC 2017
pkgbase = python-pyqrcode
pkgdesc = A QR code generator written purely in Python with SVG, EPS, PNG and terminal output (fixed for python3)
pkgver = 1.2.1
- pkgrel = 3
+ pkgrel = 4
url = https://pythonhosted.org/PyQRCode/
- arch = i686
- arch = x86_64
+ arch = any
license = CUSTOM
- makedepends = python
- makedepends = python2
makedepends = python-setuptools
makedepends = python2-setuptools
- depends = python
- depends = python2
- optdepends = python-pypng: PNG generation support
- optdepends = python2-pypng: PNG generation support
source = https://files.pythonhosted.org/packages/source/P/PyQRCode/PyQRCode-1.2.1.tar.gz
source = LICENSE
source = PyQRCode-1.2.1.tar.gz.sig
@@ -27,4 +20,9 @@ pkgbase = python-pyqrcode
pkgname = python-pyqrcode
depends = python
+ optdepends = python-pypng: PNG generation support
+
+pkgname = python2-pyqrcode
+ depends = python2
+ optdepends = python2-pypng: PNG generation support
diff --git a/PKGBUILD b/PKGBUILD
index dbd111a44ce..76a2a73474b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,20 +2,15 @@
validpgpkeys=('748231EBCBD808A14F5E85D28C004C2F93481F6B')
# Bug reports can be filed at https://bugs.square-r00t.net/index.php?project=3
# News updates for packages can be followed at https://devblog.square-r00t.net
-pkgname=python-pyqrcode
+pkgname=('python-pyqrcode' 'python2-pyqrcode')
pkgver=1.2.1
-pkgrel=3
+pkgrel=4
pkgdesc="A QR code generator written purely in Python with SVG, EPS, PNG and terminal output (fixed for python3)"
-arch=( 'i686' 'x86_64' )
+arch=('any')
url="https://pythonhosted.org/PyQRCode/"
license=('CUSTOM')
-depends=('python' 'python2')
-optdepends=('python-pypng: PNG generation support' 'python2-pypng: PNG generation support')
-makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools')
+makedepends=('python-setuptools' 'python2-setuptools')
_pkgname=PyQRCode
-install=
-changelog=
-noextract=()
source=("https://files.pythonhosted.org/packages/source/P/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"
"LICENSE"
"${_pkgname}-${pkgver}.tar.gz.sig"
@@ -27,6 +22,7 @@ sha512sums=('784262cb15c10f3581b0caeac6bba046686b35b8c0709ee78684b805b6cba49f425
package_python-pyqrcode() {
depends=('python')
+ optdepends=('python-pypng: PNG generation support')
cd "${srcdir}/${_pkgname}-${pkgver}"
python setup.py install --root="${pkgdir}" --optimize=1
@@ -35,6 +31,7 @@ package_python-pyqrcode() {
package_python2-pyqrcode() {
depends=('python2')
+ optdepends=('python2-pypng: PNG generation support')
cd "${srcdir}/${_pkgname}-${pkgver}"
python2 setup.py install --root="${pkgdir}" --optimize=1