[arch-commits] Commit in python-unidecode/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Sep 19 17:16:58 UTC 2015
Date: Saturday, September 19, 2015 @ 19:16:58
Author: foutrelis
Revision: 141043
archrelease: copy trunk to community-staging-any
Added:
python-unidecode/repos/community-staging-any/
python-unidecode/repos/community-staging-any/PKGBUILD
(from rev 141042, python-unidecode/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: python-unidecode/repos/community-staging-any/PKGBUILD (from rev 141042, python-unidecode/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2015-09-19 17:16:58 UTC (rev 141043)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Kwpolska <kwpolska at kwpolska.tk>
+
+pkgbase=python-unidecode
+pkgname=('python-unidecode' 'python2-unidecode')
+pkgver=0.04.17
+pkgrel=2
+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=('f0f8d53d39877da4849293d548eecb5e79364b573643296869dbc7f5b86709ef')
+
+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