[arch-commits] Commit in python2-qrcode/repos (community-any community-any/PKGBUILD)

Timothy Redaelli tredaelli at archlinux.org
Tue Mar 3 11:25:04 UTC 2015


    Date: Tuesday, March 3, 2015 @ 12:25:03
  Author: tredaelli
Revision: 128610

archrelease: copy trunk to community-any

Added:
  python2-qrcode/repos/community-any/
  python2-qrcode/repos/community-any/PKGBUILD
    (from rev 128609, python2-qrcode/trunk/PKGBUILD)

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

Copied: python2-qrcode/repos/community-any/PKGBUILD (from rev 128609, python2-qrcode/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2015-03-03 11:25:03 UTC (rev 128610)
@@ -0,0 +1,29 @@
+# $Id$
+# Maintainer: Timothy Redaelli <timothy.redaelli at gmail.com>
+# Contributor: Francois Boulogne <fboulogne at april dot org>
+
+pkgname=python2-qrcode
+pkgver=5.1
+pkgrel=1
+pkgdesc="Python library to generate QR codes"
+arch=('any')
+url="https://github.com/lincolnloop/python-qrcode"
+license=('custom')
+depends=('python2-pillow' 'python2-six')
+makedepends=('python2-setuptools')
+source=(http://pypi.python.org/packages/source/q/qrcode/qrcode-${pkgver}.tar.gz)
+
+prepare() {
+  find "qrcode-$pkgver" -type f -exec sed -i 's#/usr/bin/python#/usr/bin/python2#g' {} +
+  find . -type f -exec sed -i 's#/usr/bin/env python#/usr/bin/env python2#g' {} +
+}
+
+package() {
+  cd "qrcode-$pkgver"
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+
+  install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
+
+# vim:ts=2:sw=2:et:
+md5sums=('1f20223419bbf992208ada0c12ed4577')



More information about the arch-commits mailing list