Date: Monday, October 22, 2018 @ 23:52:55
  Author: foutrelis
Revision: 398613

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 398612, python-pyicu/trunk/PKGBUILD)

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

Copied: python-pyicu/repos/community-staging-x86_64/PKGBUILD (from rev 398612, 
python-pyicu/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-10-22 23:52:55 UTC (rev 398613)
@@ -0,0 +1,51 @@
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Jonathan Liu <[email protected]>
+
+pkgbase=python-pyicu
+pkgname=('python-pyicu' 'python2-pyicu')
+pkgver=2.2
+pkgrel=2
+pkgdesc="Python binding for ICU"
+arch=('x86_64')
+license=('MIT')
+url="http://pyicu.osafoundation.org/";
+makedepends=('python-setuptools' 'python2-setuptools' 'icu')
+checkdepends=('python-fonttools' 'python2-fonttools' 'python-pytest' 
'python2-pytest')
+source=("https://pypi.io/packages/source/P/PyICU/PyICU-$pkgver.tar.gz";)
+sha512sums=('30cce676fa502040e20fd4303baeebf0d83730abfedf79fdf3b69c1a3b52032a3337168b6e8902286dd4b46dda5bf894795995c6f1ef2a237fdabc374bb5ffcf')
+
+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
+}

Reply via email to