[arch-commits] Commit in (4 files)

Timothy Redaelli tredaelli at archlinux.org
Tue Mar 3 11:23:46 UTC 2015


    Date: Tuesday, March 3, 2015 @ 12:23:45
  Author: tredaelli
Revision: 128609

New package: python2-qrcode

Added:
  python2-qrcode/
  python2-qrcode/repos/
  python2-qrcode/trunk/
  python2-qrcode/trunk/PKGBUILD

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

Added: python2-qrcode/trunk/PKGBUILD
===================================================================
--- python2-qrcode/trunk/PKGBUILD	                        (rev 0)
+++ python2-qrcode/trunk/PKGBUILD	2015-03-03 11:23:45 UTC (rev 128609)
@@ -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')


Property changes on: python2-qrcode/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list