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

Evangelos Foutras foutrelis at archlinux.org
Sun Nov 12 12:47:35 UTC 2017


    Date: Sunday, November 12, 2017 @ 12:47:34
  Author: foutrelis
Revision: 266317

archrelease: copy trunk to community-staging-x86_64

Added:
  python-pyicu/repos/community-staging-x86_64/
  python-pyicu/repos/community-staging-x86_64/PKGBUILD
    (from rev 266316, python-pyicu/trunk/PKGBUILD)

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

Copied: python-pyicu/repos/community-staging-x86_64/PKGBUILD (from rev 266316, python-pyicu/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-11-12 12:47:34 UTC (rev 266317)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Jonathan Liu <net147 at gmail.com>
+
+pkgbase=python-pyicu
+pkgname=('python-pyicu' 'python2-pyicu')
+pkgver=1.9.8
+pkgrel=2
+pkgdesc="Python binding for ICU"
+arch=('i686' 'x86_64')
+license=('MIT')
+url="http://pyicu.osafoundation.org/"
+makedepends=('python-setuptools' 'python2-setuptools' 'icu')
+checkdepends=('python-fonttools' 'python2-fonttools')
+source=("https://pypi.io/packages/source/P/PyICU/PyICU-$pkgver.tar.gz")
+sha512sums=('87a539168ef89c0b77219e9373fb304e95088a5410c64f7939c382d840bc021af0edfffce89d3212cc9642c31cff7e508b7f70ee83466bc84793287a8661f4e1')
+
+prepare() {
+  cp -a PyICU-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir/"PyICU-$pkgver
+  python setup.py build
+
+  cd "$srcdir/"PyICU-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/"PyICU-$pkgver
+  python setup.py test
+
+  cd "$srcdir/"PyICU-$pkgver-py2
+  python2 setup.py test || true # https://github.com/ovalhub/pyicu/issues/61
+}
+
+package_python-pyicu() {
+  depends=('python' 'icu')
+
+  cd PyICU-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-pyicu() {
+  depends=('python2' 'icu')
+
+  cd PyICU-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list