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

Felix Yan felixonmars at archlinux.org
Tue Oct 17 00:35:14 UTC 2017


    Date: Tuesday, October 17, 2017 @ 00:35:13
  Author: felixonmars
Revision: 263116

archrelease: copy trunk to community-any

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

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

Copied: python-text-unidecode/repos/community-any/PKGBUILD (from rev 263115, python-text-unidecode/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2017-10-17 00:35:13 UTC (rev 263116)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
+# Contributor: Kyle Keen <keenerd at gmail.com>
+
+pkgbase=python-text-unidecode
+pkgname=(python-text-unidecode python2-text-unidecode)
+pkgver=1.0
+pkgrel=1
+pkgdesc="The most basic Text::Unidecode port"
+url="https://github.com/kmike/text-unidecode"
+license=('PerlArtistic')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("https://pypi.io/packages/source/t/text-unidecode/text-unidecode-$pkgver.tar.gz")
+md5sums=('e8b5b7be1bf6107888db15359893383f')
+
+prepare() {
+  cp -a text-unidecode-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/text-unidecode-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/text-unidecode-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/text-unidecode-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/text-unidecode-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-text-unidecode() {
+  depends=('python')
+
+  cd text-unidecode-$pkgver
+  python3 setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-text-unidecode() {
+  depends=('python2')
+
+  cd text-unidecode-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list