[arch-commits] Commit in python-unidecode/repos (2 files)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Sun Dec 25 16:47:49 UTC 2016


    Date: Sunday, December 25, 2016 @ 16:47:48
  Author: bpiotrowski
Revision: 201962

archrelease: copy trunk to community-staging-any

Added:
  python-unidecode/repos/community-staging-any/
  python-unidecode/repos/community-staging-any/PKGBUILD
    (from rev 201961, python-unidecode/trunk/PKGBUILD)

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

Copied: python-unidecode/repos/community-staging-any/PKGBUILD (from rev 201961, python-unidecode/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-25 16:47:48 UTC (rev 201962)
@@ -0,0 +1,49 @@
+# $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.19
+pkgrel=3
+pkgdesc='ASCII transliterations of Unicode text'
+arch=('any')
+url='https://pypi.python.org/pypi/Unidecode/'
+license=('GPL')
+makedepends=('python-setuptools' 'python2-setuptools')
+options=('!emptydirs')
+source=("https://pypi.python.org/packages/source/U/Unidecode/Unidecode-${pkgver}.tar.gz")
+sha256sums=('51477646a9169469e37e791b13ae65fcc75b7f7f570d0d3e514d077805c02e1e')
+
+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() {
+  depends=('python')
+
+  cd python-unidecode
+
+  python setup.py install --root="${pkgdir}" --optimize='1'
+}
+
+package_python2-unidecode() {
+  depends=('python2')
+
+  cd python2-unidecode
+
+  python2 setup.py install --root="${pkgdir}" --optimize='1'
+  mv "${pkgdir}"/usr/bin/unidecode{,2}
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list