summaryrefslogtreecommitdiff
path: root/community/python-levenshtein
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-01-16 03:37:59 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-01-16 03:37:59 +0000
commitb296a78e1469d58c52acc47586bd5bb84f25fc0f (patch)
treea7bd50ca00f66f43ab58a4e79740737a82cf6991 /community/python-levenshtein
parent154321f7346db5c32dbdf9c730735969eabbd88f (diff)
Thu Jan 16 03:32:12 UTC 2014
Diffstat (limited to 'community/python-levenshtein')
-rw-r--r--community/python-levenshtein/PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/community/python-levenshtein/PKGBUILD b/community/python-levenshtein/PKGBUILD
new file mode 100644
index 000000000..b8af20113
--- /dev/null
+++ b/community/python-levenshtein/PKGBUILD
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars@gmail.com>
+# Contributor: Thomas S Hatch <thatch45@gmail.com>
+# Contributor: shamrok <szamrok@gmail.com>
+# Contributor: scj <scj archlinux us>
+
+pkgbase=python-levenshtein
+pkgname=(python-levenshtein python2-levenshtein)
+pkgver=0.11.1
+pkgrel=1
+pkgdesc="Python extension for computing string edit distances and similarities"
+url="http://pypi.python.org/pypi/python-Levenshtein/"
+license=("GPL")
+arch=('i686' 'x86_64')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("http://pypi.python.org/packages/source/p/python-Levenshtein/python-Levenshtein-$pkgver.tar.gz")
+
+prepare() {
+ cp -r python-Levenshtein-$pkgver python2-Levenshtein-$pkgver
+
+ cd python-Levenshtein-$pkgver
+ sed -i "s|[)].read|, encoding='utf8').read|" setup.py
+}
+
+package_python-levenshtein() {
+ depends=('python')
+
+ cd python-Levenshtein-$pkgver
+ python setup.py build install --prefix=/usr --root="$pkgdir"
+}
+
+package_python2-levenshtein() {
+ depends=('python2')
+
+ cd python2-Levenshtein-$pkgver
+ python2 setup.py build install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums=('335f29253ec7bba8d54881dfe093ac194626cdaad0cc6ed08327917d6187cdfe1fbb3d003744f991587f8dc800aa1d361e3aa0b276b31ecfe7a43d83ea0d660b')