[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at archlinux.org
Tue Oct 17 00:34:45 UTC 2017
Date: Tuesday, October 17, 2017 @ 00:34:42
Author: felixonmars
Revision: 263115
addpkg: python-text-unidecode 1.0-1
Added:
python-text-unidecode/
python-text-unidecode/repos/
python-text-unidecode/trunk/
python-text-unidecode/trunk/PKGBUILD
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Added: python-text-unidecode/trunk/PKGBUILD
===================================================================
--- python-text-unidecode/trunk/PKGBUILD (rev 0)
+++ python-text-unidecode/trunk/PKGBUILD 2017-10-17 00:34:42 UTC (rev 263115)
@@ -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
+}
Property changes on: python-text-unidecode/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list