[arch-commits] Commit in python-pyicu/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Tue Apr 2 12:21:54 UTC 2019


    Date: Tuesday, April 2, 2019 @ 12:21:40
  Author: felixonmars
Revision: 447634

upgpkg: python-pyicu 2.3-2

remove python2 sibling

Modified:
  python-pyicu/trunk/PKGBUILD

----------+
 PKGBUILD |   36 ++++++++----------------------------
 1 file changed, 8 insertions(+), 28 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-04-02 12:21:23 UTC (rev 447633)
+++ PKGBUILD	2019-04-02 12:21:40 UTC (rev 447634)
@@ -1,51 +1,31 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 # Contributor: Jonathan Liu <net147 at gmail.com>
 
-pkgbase=python-pyicu
-pkgname=('python-pyicu' 'python2-pyicu')
+pkgname=python-pyicu
 pkgver=2.3
-pkgrel=1
+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')
+depends=('python' 'icu')
+makedepends=('python-setuptools')
+checkdepends=('python-fonttools' 'python-pytest')
 source=("https://pypi.io/packages/source/P/PyICU/PyICU-$pkgver.tar.gz")
 sha512sums=('2bdbc7fb7c83e58c9d0d53dadf8fef92d8dec02e9eefebc75bac43c19f008ef2a3219d41b62c426c41a055bb4530b2f7ef567162660d6021b8d2bf9e99090f94')
 
-prepare() {
-  cp -a PyICU-$pkgver{,-py2}
-}
-
 build() {
-  cd "$srcdir/"PyICU-$pkgver
+  cd PyICU-$pkgver
   python setup.py build
-
-  cd "$srcdir/"PyICU-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
-  cd "$srcdir/"PyICU-$pkgver
+  cd 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')
-
+package() {
   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