[arch-commits] Commit in (5 files)

Maxime Gauduin alucryd at nymeria.archlinux.org
Mon Mar 10 10:56:09 UTC 2014


    Date: Monday, March 10, 2014 @ 11:56:09
  Author: alucryd
Revision: 106916

Provide both python 2 and 3 versions of unidecode

Added:
  python-unidecode/
  python-unidecode/repos/
  python-unidecode/trunk/
  python-unidecode/trunk/PKGBUILD
Deleted:
  python2-unidecode/

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

Added: python-unidecode/trunk/PKGBUILD
===================================================================
--- python-unidecode/trunk/PKGBUILD	                        (rev 0)
+++ python-unidecode/trunk/PKGBUILD	2014-03-10 10:56:09 UTC (rev 106916)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Maxime Gauduin <alucryd at gmail.com>
+# Contributor: Kwpolska <kwpolska at kwpolska.tk>
+
+pkgbase=python-unidecode
+pkgname=('python-unidecode' 'python2-unidecode')
+pkgver=0.04.14
+pkgrel=1
+pkgdesc='ASCII transliterations of Unicode text'
+arch=('any')
+url='http://pypi.python.org/pypi/Unidecode/'
+license=('GPL')
+makedepends=('python-setuptools' 'python2-setuptools')
+options=('!emptydirs')
+source=("http://pypi.python.org/packages/source/U/Unidecode/Unidecode-${pkgver}.tar.gz")
+sha256sums=('a66f8a527ee0709742caa16745cc882b85d6cfc12b37fa2f56024d07031f230c')
+
+prepare() {
+  for d in python{,2}-unidecode; do
+    cp -r Unidecode-${pkgver} $d
+  done
+}
+
+build() {
+  for d in python{,2}-unidecode; do
+    pushd $d
+    ${d%-*} setup.py build
+    popd
+  done
+}
+
+package_python-unidecode() {
+  cd python-unidecode
+
+  python setup.py install --root="${pkgdir}" --optimize='1'
+}
+
+package_python2-unidecode() {
+  cd python2-unidecode
+
+  python2 setup.py install --root="${pkgdir}" --optimize='1'
+}
+
+# vim: ts=2 sw=2 et:


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



More information about the arch-commits mailing list