[arch-commits] Commit in python-snowballstemmer (4 files)
Antonio Rojas
arojas at archlinux.org
Sat May 9 18:37:39 UTC 2015
Date: Saturday, May 9, 2015 @ 20:37:39
Author: arojas
Revision: 133110
archrelease: copy trunk to community-any
Added:
python-snowballstemmer/repos/
python-snowballstemmer/repos/community-any/
python-snowballstemmer/repos/community-any/LICENSE
(from rev 133109, python-snowballstemmer/trunk/LICENSE)
python-snowballstemmer/repos/community-any/PKGBUILD
(from rev 133109, python-snowballstemmer/trunk/PKGBUILD)
----------+
LICENSE | 15 +++++++++++++++
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 55 insertions(+)
Copied: python-snowballstemmer/repos/community-any/LICENSE (from rev 133109, python-snowballstemmer/trunk/LICENSE)
===================================================================
--- repos/community-any/LICENSE (rev 0)
+++ repos/community-any/LICENSE 2015-05-09 18:37:39 UTC (rev 133110)
@@ -0,0 +1,15 @@
+Copyright (c) 2013, Yoshiki Shibukawa
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the
+documentation and/or other materials provided with the distribution.
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Copied: python-snowballstemmer/repos/community-any/PKGBUILD (from rev 133109, python-snowballstemmer/trunk/PKGBUILD)
===================================================================
--- repos/community-any/PKGBUILD (rev 0)
+++ repos/community-any/PKGBUILD 2015-05-09 18:37:39 UTC (rev 133110)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer:
+# Contributor: xantares
+
+pkgbase=python-snowballstemmer
+pkgname=('python-snowballstemmer' 'python2-snowballstemmer')
+pkgver=1.2.0
+pkgrel=1
+arch=(any)
+pkgdesc="Snowball stemming library collection for Python"
+url='https://github.com/shibukawa/snowball_py'
+license=(BSD)
+makedepends=(python-setuptools python2-setuptools)
+source=("https://pypi.python.org/packages/source/s/snowballstemmer/snowballstemmer-${pkgver}.tar.gz" 'LICENSE')
+md5sums=('51f2ef829db8129dd0f2354f0b209970'
+ 'e269a6e5398d3795d4077cef3152aa33')
+
+build() {
+ cp -r ${srcdir}/snowballstemmer-${pkgver} ${srcdir}/snowballstemmer-${pkgver}-py2
+
+ cd "$srcdir"/snowballstemmer-${pkgver}
+ python setup.py build
+
+ cd "$srcdir"/snowballstemmer-${pkgver}-py2
+ python2 setup.py build
+}
+
+package_python-snowballstemmer() {
+ cd "$srcdir"/snowballstemmer-${pkgver}
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 "$srcdir"/LICENSE "$pkgdir"/usr/share/licenses/python-snowballstemmer/LICENSE
+}
+
+package_python2-snowballstemmer() {
+ cd "$srcdir"/snowballstemmer-${pkgver}-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 "$srcdir"/LICENSE "$pkgdir"/usr/share/licenses/python2-snowballstemmer/LICENSE
+}
More information about the arch-commits
mailing list