[arch-commits] Commit in python-qrencode/trunk (PKGBUILD)

Martin Wimpress flexiondotorg at archlinux.org
Mon Oct 6 14:05:21 UTC 2014


    Date: Monday, October 6, 2014 @ 16:05:21
  Author: flexiondotorg
Revision: 120265

upgpkg: python-qrencode 1.01-7 - Implements FS#42252.

Modified:
  python-qrencode/trunk/PKGBUILD

----------+
 PKGBUILD |   16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-10-06 14:04:45 UTC (rev 120264)
+++ PKGBUILD	2014-10-06 14:05:21 UTC (rev 120265)
@@ -1,15 +1,15 @@
 # $Id$
 # Maintainer: Martin Wimpress <code at flexion.org>
 
-pkgname=python-qrencode
+pkgbase=python-qrencode
+pkgname=(python-qrencode python2-qrencode)
 pkgver=1.01
-pkgrel=6
+pkgrel=7
 pkgdesc="A simple wrapper for the C qrencode library"
 arch=('i686' 'x86_64')
 url="http://pypi.python.org/pypi/qrencode"
 license=('Apache')
-depends=('python-pillow' 'qrencode')
-makedepends=('gcc')
+makedepends=('gcc' 'python' 'python2' 'python-pillow' 'python2-pillow' 'qrencode')
 source=("http://pypi.python.org/packages/source/q/qrencode/qrencode-${pkgver}.tar.gz")
 sha256sums=('fd8cdabd743e2db7a1ad332d4f0fe037e5a7807cb2f1d32da3e39439088bb610')
 
@@ -18,9 +18,15 @@
     sed -i 's/import Image/from PIL import Image/' qrencode/__init__.py
 }
 
-package() {
+package_python-qrencode() {
+    depends=('python' 'python-pillow' 'qrencode')
     cd "${srcdir}/qrencode-${pkgver}"
     python setup.py install --prefix=/usr --root="${pkgdir}"
 }
 
+package_python2-qrencode() {
+    depends=('python2' 'python2-pillow' 'qrencode')
+    cd "${srcdir}/qrencode-${pkgver}"
+    python2 setup.py install --prefix=/usr --root="${pkgdir}"
+}
 



More information about the arch-commits mailing list