[arch-commits] Commit in (4 files)

Timothy Redaelli tredaelli at archlinux.org
Mon Mar 9 13:57:44 UTC 2015


    Date: Monday, March 9, 2015 @ 14:57:44
  Author: tredaelli
Revision: 128980

New package: python2-zbar

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

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

Added: python2-zbar/trunk/PKGBUILD
===================================================================
--- python2-zbar/trunk/PKGBUILD	                        (rev 0)
+++ python2-zbar/trunk/PKGBUILD	2015-03-09 13:57:44 UTC (rev 128980)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Timothy Redaelli <timothy.redaelli at gmail.com>
+# Contributor: Andy Weidenbaum <archbaum at gmail.com>
+# Contributor: Giorgio Gilestro <giorgio at gilest.ro>
+# Contributor: Valentin Huélamo <vhuelamo at gmail.com>
+
+pkgname=python2-zbar
+pkgver=0.10
+pkgrel=5
+pkgdesc="Python bindings for zbar QR code & bar code reader"
+arch=('any')
+depends=('python2' 'zbar')
+makedepends=('python2-setuptools')
+url="https://pypi.python.org/pypi/zbar/"
+license=('LGPL')
+source=(https://pypi.python.org/packages/source/z/${pkgname#python2-}/${pkgname#python2-}-$pkgver.tar.gz
+        https://pypi.python.org/packages/source/z/${pkgname#python2-}/${pkgname#python2-}-$pkgver.tar.gz.asc)
+md5sums=('09568253d65e13e252987e3fd02e5ec8'
+         'cc3cc73b96ef9773f1c184d68f2077ab')
+sha256sums=('5d0dad77dbca8822a4689c546f598f28030321efb14fa36ac5e409d181a0d9dd'
+            'ecff67e9505b6f7773beac1f6149d661566e3b083db32b61a0e58eba9172f3d2')
+
+prepare() {
+  cd $srcdir/${pkgname#python2-}-$pkgver
+
+  msg 'Fixing Python version...'
+  find . -type f -print0 | xargs -0 sed -i 's#/usr/bin/python#/usr/bin/python2#g'
+  find . -type f -print0 | xargs -0 sed -i 's#/usr/bin/env python#/usr/bin/env python2#g'
+}
+
+build() {
+  cd ${pkgname#python2-}-$pkgver
+
+  python2 setup.py build
+}
+
+package() {
+  cd ${pkgname#python2-}-$pkgver
+
+  python2 setup.py install --root="$pkgdir" --optimize=1 
+  rm ${pkgdir}/usr/lib/python2.7/site-packages/zbar.so
+}


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



More information about the arch-commits mailing list