diff options
Diffstat (limited to 'community/python-levenshtein')
-rw-r--r-- | community/python-levenshtein/PKGBUILD | 39 |
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') |