[arch-commits] Commit in python-qrcode/repos (2 files)

2019-10-25 Thread Evangelos Foutras via arch-commits
Date: Saturday, October 26, 2019 @ 04:39:30
  Author: foutrelis
Revision: 520076

archrelease: copy trunk to community-staging-any

Added:
  python-qrcode/repos/community-staging-any/
  python-qrcode/repos/community-staging-any/PKGBUILD
(from rev 520075, python-qrcode/trunk/PKGBUILD)

--+
 PKGBUILD |   31 +++
 1 file changed, 31 insertions(+)

Copied: python-qrcode/repos/community-staging-any/PKGBUILD (from rev 520075, 
python-qrcode/trunk/PKGBUILD)
===
--- community-staging-any/PKGBUILD  (rev 0)
+++ community-staging-any/PKGBUILD  2019-10-26 04:39:30 UTC (rev 520076)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan 
+# Maintainer: Levente Polyak 
+# Contributor Maintainer: Timothy Redaelli 
+# Contributor: Francois Boulogne 
+
+pkgname=python-qrcode
+pkgver=6.1
+pkgrel=3
+pkgdesc='Python library to generate QR codes'
+url='https://github.com/lincolnloop/python-qrcode'
+arch=('any')
+license=('custom')
+depends=('python-pillow' 'python-six' 'python-setuptools')
+source=(https://github.com/lincolnloop/python-qrcode/archive/v$pkgver/$pkgname-v$pkgver.tar.gz)
+sha512sums=('3af3b67959be8dd30b372145ff7b8aa1e20153c403b17c688d5a7189e3b25da872c6eee916e6d47e4f6545c87c0c0eb9af52e115353a0e8c0f73e4948ddc6829')
+
+build() {
+  cd $pkgname-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd $pkgname-$pkgver
+  python -m unittest discover qrcode
+}
+
+package() {
+  cd $pkgname-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm 644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}


[arch-commits] Commit in python-qrcode/repos (2 files)

2018-06-30 Thread Felix Yan via arch-commits
Date: Saturday, June 30, 2018 @ 15:47:05
  Author: felixonmars
Revision: 348306

archrelease: copy trunk to community-staging-any

Added:
  python-qrcode/repos/community-staging-any/
  python-qrcode/repos/community-staging-any/PKGBUILD
(from rev 348304, python-qrcode/trunk/PKGBUILD)

--+
 PKGBUILD |   58 ++
 1 file changed, 58 insertions(+)

Copied: python-qrcode/repos/community-staging-any/PKGBUILD (from rev 348304, 
python-qrcode/trunk/PKGBUILD)
===
--- community-staging-any/PKGBUILD  (rev 0)
+++ community-staging-any/PKGBUILD  2018-06-30 15:47:05 UTC (rev 348306)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Timothy Redaelli 
+# Maintainer: Felix Yan 
+# Contributor: Francois Boulogne 
+
+pkgbase=python-qrcode
+pkgname=(python-qrcode python2-qrcode)
+pkgver=6.0
+pkgrel=2
+pkgdesc="Python library to generate QR codes"
+arch=('any')
+url="https://github.com/lincolnloop/python-qrcode;
+license=('custom')
+makedepends=('python-pillow' 'python2-pillow' 'python-six' 'python2-six' 
'python-setuptools' 'python2-setuptools')
+checkdepends=('python2-mock')
+source=(https://pypi.io/packages/source/q/qrcode/qrcode-${pkgver}.tar.gz
+
https://github.com/lincolnloop/python-qrcode/commit/35056062270a3d5084b1217df611d09cd94c5ca3.patch)
+sha512sums=('c43f12fe6b12d244d19a994cfd20adbe3776bbda1459c9dbc6164b1c9e7637f05e2acc1c2d29b82243024a4ea9b46c319a56acdf6d05e7b697bcd2c31c02102e'
+
'320ec020268d8ede2f80ba622cd593b2ba9758f1d264fdb546dac126a841d454d02d12ae57edc6601bfd19062953bce9189b59184ce653d43c002e7664f87018')
+
+prepare() {
+  (cd qrcode-$pkgver; patch -p1 -i 
../35056062270a3d5084b1217df611d09cd94c5ca3.patch)
+  cp -a qrcode-$pkgver{,-py2}
+
+  find "qrcode-$pkgver-py2" -type f -exec sed -e 
's#/usr/bin/python#/usr/bin/python2#g' \
+  -e 's#/usr/bin/env 
python#/usr/bin/env python2#g' -i {} +
+}
+
+check() {
+  cd "$srcdir"/qrcode-$pkgver
+  python -m unittest discover qrcode
+
+  cd "$srcdir"/qrcode-$pkgver-py2
+  python2 -m unittest discover qrcode
+}
+
+package_python-qrcode() {
+  depends=('python-pillow' 'python-six' 'python-setuptools')
+
+  cd "qrcode-$pkgver"
+  python setup.py install --root="${pkgdir}" --optimize=1
+
+  install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
+
+package_python2-qrcode() {
+  depends=('python2-pillow' 'python2-six' 'python2-setuptools')
+
+  cd "qrcode-$pkgver-py2"
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+
+  install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+
+  mv "$pkgdir"/usr/bin/qr{,2}
+  mv "$pkgdir"/usr/share/man/man1/qr{,2}.1
+}
+
+# vim:ts=2:sw=2:et:


[arch-commits] Commit in python-qrcode/repos (2 files)

2018-04-25 Thread Felix Yan via arch-commits
Date: Wednesday, April 25, 2018 @ 06:12:09
  Author: felixonmars
Revision: 317718

archrelease: copy trunk to community-testing-any

Added:
  python-qrcode/repos/community-testing-any/
  python-qrcode/repos/community-testing-any/PKGBUILD
(from rev 317717, python-qrcode/trunk/PKGBUILD)

--+
 PKGBUILD |   58 ++
 1 file changed, 58 insertions(+)

Copied: python-qrcode/repos/community-testing-any/PKGBUILD (from rev 317717, 
python-qrcode/trunk/PKGBUILD)
===
--- community-testing-any/PKGBUILD  (rev 0)
+++ community-testing-any/PKGBUILD  2018-04-25 06:12:09 UTC (rev 317718)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Timothy Redaelli 
+# Maintainer: Felix Yan 
+# Contributor: Francois Boulogne 
+
+pkgbase=python-qrcode
+pkgname=(python-qrcode python2-qrcode)
+pkgver=6.0
+pkgrel=1
+pkgdesc="Python library to generate QR codes"
+arch=('any')
+url="https://github.com/lincolnloop/python-qrcode;
+license=('custom')
+makedepends=('python-pillow' 'python2-pillow' 'python-six' 'python2-six' 
'python-setuptools' 'python2-setuptools')
+checkdepends=('python2-mock')
+source=(https://pypi.io/packages/source/q/qrcode/qrcode-${pkgver}.tar.gz
+
https://github.com/lincolnloop/python-qrcode/commit/35056062270a3d5084b1217df611d09cd94c5ca3.patch)
+sha512sums=('c43f12fe6b12d244d19a994cfd20adbe3776bbda1459c9dbc6164b1c9e7637f05e2acc1c2d29b82243024a4ea9b46c319a56acdf6d05e7b697bcd2c31c02102e'
+
'320ec020268d8ede2f80ba622cd593b2ba9758f1d264fdb546dac126a841d454d02d12ae57edc6601bfd19062953bce9189b59184ce653d43c002e7664f87018')
+
+prepare() {
+  (cd qrcode-$pkgver; patch -p1 -i 
../35056062270a3d5084b1217df611d09cd94c5ca3.patch)
+  cp -a qrcode-$pkgver{,-py2}
+
+  find "qrcode-$pkgver-py2" -type f -exec sed -e 
's#/usr/bin/python#/usr/bin/python2#g' \
+  -e 's#/usr/bin/env 
python#/usr/bin/env python2#g' -i {} +
+}
+
+check() {
+  cd "$srcdir"/qrcode-$pkgver
+  python -m unittest discover qrcode
+
+  cd "$srcdir"/qrcode-$pkgver-py2
+  python2 -m unittest discover qrcode
+}
+
+package_python-qrcode() {
+  depends=('python-pillow' 'python-six' 'python-setuptools')
+
+  cd "qrcode-$pkgver"
+  python setup.py install --root="${pkgdir}" --optimize=1
+
+  install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
+
+package_python2-qrcode() {
+  depends=('python2-pillow' 'python2-six' 'python2-setuptools')
+
+  cd "qrcode-$pkgver-py2"
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+
+  install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+
+  mv "$pkgdir"/usr/bin/qr{,2}
+  mv "$pkgdir"/usr/share/man/man1/qr{,2}.1
+}
+
+# vim:ts=2:sw=2:et:


[arch-commits] Commit in python-qrcode/repos (2 files)

2016-12-25 Thread Evangelos Foutras
Date: Sunday, December 25, 2016 @ 17:16:18
  Author: foutrelis
Revision: 202063

archrelease: copy trunk to community-staging-any

Added:
  python-qrcode/repos/community-staging-any/
  python-qrcode/repos/community-staging-any/PKGBUILD
(from rev 202062, python-qrcode/trunk/PKGBUILD)

--+
 PKGBUILD |   55 +++
 1 file changed, 55 insertions(+)

Copied: python-qrcode/repos/community-staging-any/PKGBUILD (from rev 202062, 
python-qrcode/trunk/PKGBUILD)
===
--- community-staging-any/PKGBUILD  (rev 0)
+++ community-staging-any/PKGBUILD  2016-12-25 17:16:18 UTC (rev 202063)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Timothy Redaelli 
+# Maintainer: Felix Yan 
+# Contributor: Francois Boulogne 
+
+pkgbase=python-qrcode
+pkgname=(python-qrcode python2-qrcode)
+pkgver=5.3
+pkgrel=3
+pkgdesc="Python library to generate QR codes"
+arch=('any')
+url="https://github.com/lincolnloop/python-qrcode;
+license=('custom')
+makedepends=('python-pillow' 'python2-pillow' 'python-six' 'python2-six' 
'python-setuptools' 'python2-setuptools')
+checkdepends=('python2-mock')
+source=(https://pypi.io/packages/source/q/qrcode/qrcode-${pkgver}.tar.gz)
+md5sums=('af41b650a3675d0a0366f842de9786b9')
+
+prepare() {
+  cp -a qrcode-$pkgver{,-py2}
+
+  find "qrcode-$pkgver-py2" -type f -exec sed -e 
's#/usr/bin/python#/usr/bin/python2#g' \
+  -e 's#/usr/bin/env 
python#/usr/bin/env python2#g' -i {} +
+}
+
+check() {
+  cd "$srcdir"/qrcode-$pkgver
+  python -m unittest discover qrcode
+
+  cd "$srcdir"/qrcode-$pkgver-py2
+  python2 -m unittest discover qrcode
+}
+
+package_python-qrcode() {
+  depends=('python-pillow' 'python-six' 'python-setuptools')
+
+  cd "qrcode-$pkgver"
+  python setup.py install --root="${pkgdir}" --optimize=1
+
+  install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
+
+package_python2-qrcode() {
+  depends=('python2-pillow' 'python2-six' 'python2-setuptools')
+
+  cd "qrcode-$pkgver-py2"
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+
+  install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+
+  mv "$pkgdir"/usr/bin/qr{,2}
+  mv "$pkgdir"/usr/share/man/man1/qr{,2}.1
+}
+
+# vim:ts=2:sw=2:et:


[arch-commits] Commit in python-qrcode/repos (2 files)

2016-11-17 Thread Felix Yan
Date: Thursday, November 17, 2016 @ 10:29:24
  Author: felixonmars
Revision: 196231

archrelease: copy trunk to community-testing-any

Added:
  python-qrcode/repos/community-testing-any/
  python-qrcode/repos/community-testing-any/PKGBUILD
(from rev 196230, python-qrcode/trunk/PKGBUILD)

--+
 PKGBUILD |   55 +++
 1 file changed, 55 insertions(+)

Copied: python-qrcode/repos/community-testing-any/PKGBUILD (from rev 196230, 
python-qrcode/trunk/PKGBUILD)
===
--- community-testing-any/PKGBUILD  (rev 0)
+++ community-testing-any/PKGBUILD  2016-11-17 10:29:24 UTC (rev 196231)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Timothy Redaelli 
+# Maintainer: Felix Yan 
+# Contributor: Francois Boulogne 
+
+pkgbase=python-qrcode
+pkgname=(python-qrcode python2-qrcode)
+pkgver=5.3
+pkgrel=2
+pkgdesc="Python library to generate QR codes"
+arch=('any')
+url="https://github.com/lincolnloop/python-qrcode;
+license=('custom')
+makedepends=('python-pillow' 'python2-pillow' 'python-six' 'python2-six' 
'python-setuptools' 'python2-setuptools')
+checkdepends=('python2-mock')
+source=(https://pypi.io/packages/source/q/qrcode/qrcode-${pkgver}.tar.gz)
+md5sums=('af41b650a3675d0a0366f842de9786b9')
+
+prepare() {
+  cp -a qrcode-$pkgver{,-py2}
+
+  find "qrcode-$pkgver-py2" -type f -exec sed -e 
's#/usr/bin/python#/usr/bin/python2#g' \
+  -e 's#/usr/bin/env 
python#/usr/bin/env python2#g' -i {} +
+}
+
+check() {
+  cd "$srcdir"/qrcode-$pkgver
+  python -m unittest discover qrcode
+
+  cd "$srcdir"/qrcode-$pkgver-py2
+  python2 -m unittest discover qrcode
+}
+
+package_python-qrcode() {
+  depends=('python-pillow' 'python-six' 'python-setuptools')
+
+  cd "qrcode-$pkgver"
+  python setup.py install --root="${pkgdir}" --optimize=1
+
+  install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
+
+package_python2-qrcode() {
+  depends=('python2-pillow' 'python2-six' 'python2-setuptools')
+
+  cd "qrcode-$pkgver-py2"
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+
+  install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+
+  mv "$pkgdir"/usr/bin/qr{,2}
+  mv "$pkgdir"/usr/share/man/man1/qr{,2}.1
+}
+
+# vim:ts=2:sw=2:et: