[arch-commits] Commit in python-unidecode/repos (community-any community-any/PKGBUILD)
Maxime Gauduin
alucryd at nymeria.archlinux.org
Mon Mar 10 10:56:29 UTC 2014
Date: Monday, March 10, 2014 @ 11:56:29
Author: alucryd
Revision: 106917
archrelease: copy trunk to community-any
Added:
python-unidecode/repos/community-any/
python-unidecode/repos/community-any/PKGBUILD
(from rev 106916, python-unidecode/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: python-unidecode/repos/community-any/PKGBUILD (from rev 106916, python-unidecode/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2014-03-10 10:56:29 UTC (rev 106917)
@@ -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:
More information about the arch-commits
mailing list