[arch-commits] Commit in python-jieba/repos (3 files)

Felix Yan fyan at archlinux.org
Tue Oct 13 13:49:50 UTC 2015


    Date: Tuesday, October 13, 2015 @ 15:49:49
  Author: fyan
Revision: 143915

archrelease: copy trunk to community-any

Added:
  python-jieba/repos/community-any/
  python-jieba/repos/community-any/LICENSE
    (from rev 143914, python-jieba/trunk/LICENSE)
  python-jieba/repos/community-any/PKGBUILD
    (from rev 143914, python-jieba/trunk/PKGBUILD)

----------+
 LICENSE  |   20 ++++++++++++++++++++
 PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 2 files changed, 56 insertions(+)

Copied: python-jieba/repos/community-any/LICENSE (from rev 143914, python-jieba/trunk/LICENSE)
===================================================================
--- community-any/LICENSE	                        (rev 0)
+++ community-any/LICENSE	2015-10-13 13:49:49 UTC (rev 143915)
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright (c) 2013 Sun Junyi
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file

Copied: python-jieba/repos/community-any/PKGBUILD (from rev 143914, python-jieba/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2015-10-13 13:49:49 UTC (rev 143915)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_pypiname=jieba
+pkgname=(python-jieba python2-jieba)
+pkgver=0.37
+pkgrel=1
+pkgdesc="Chinese Words Segementation Utilities"
+arch=('any')
+url='https://github.com/fxsjy/jieba'
+license=('MIT')
+makedepends=('python' 'python2')
+source=("http://pypi.python.org/packages/source/j/jieba/jieba-$pkgver.zip"
+        LICENSE)
+sha512sums=('61342a14215f65f6abb6c7cd0872e9ac16a6778415704c422b272c1f1f384ae9913e007cddb15df64f4696219034b4cc328cf28d304c3239cc4181359e5cf84f'
+            '4ff70d3b714cd57b9c53e156fc4c0dd14f22001e20fce2edbdba079f352271f85e5e8c1e519ff2f91ff1aa258adb8ecc3ffc3bd8cb34ffdc6a44ced9a583feaf')
+
+prepare() {
+  cp -a jieba-$pkgver{,-py2}
+}
+
+package_python-jieba() {
+  depends=('python')
+
+  cd "$srcdir/jieba-$pkgver"
+  python setup.py install -O1 --root="$pkgdir"
+  install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-jieba() {
+  depends=('python2')
+
+  cd "$srcdir/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