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

Felix Yan felixonmars at archlinux.org
Tue Apr 2 14:19:57 UTC 2019


    Date: Tuesday, April 2, 2019 @ 14:19:56
  Author: felixonmars
Revision: 447777

upgpkg: python-jieba 0.39-3

remove python2 sibling

Modified:
  python-jieba/trunk/PKGBUILD

----------+
 PKGBUILD |   25 +++++--------------------
 1 file changed, 5 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-04-02 13:56:35 UTC (rev 447776)
+++ PKGBUILD	2019-04-02 14:19:56 UTC (rev 447777)
@@ -1,33 +1,18 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-jieba
-pkgname=(python-jieba python2-jieba)
+pkgname=python-jieba
 pkgver=0.39
-pkgrel=2
+pkgrel=3
 pkgdesc="Chinese Words Segementation Utilities"
 arch=('any')
 url='https://github.com/fxsjy/jieba'
 license=('MIT')
-makedepends=('python' 'python2')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/fxsjy/jieba/archive/v$pkgver.tar.gz")
+depends=('python')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/fxsjy/jieba/archive/v$pkgver.tar.gz")
 sha512sums=('2d8d25604265c8952dbed1a584548490b6b4f183cc3f09956c689c240d8b545f8f8aa09b5e25620539c45e08a77ac2be85f0ad228ab3c4100a1962b11caf5ea5')
 
-prepare() {
-  cp -a jieba-$pkgver{,-py2}
-}
-
-package_python-jieba() {
-  depends=('python')
-
+package() {
   cd jieba-$pkgver
   python setup.py install -O1 --root="$pkgdir"
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
-
-package_python2-jieba() {
-  depends=('python2')
-
-  cd jieba-$pkgver-py2
-  python2 setup.py install -O1 --root="$pkgdir"
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}


More information about the arch-commits mailing list