28 lines
817 B
Bash
28 lines
817 B
Bash
|
# Template file for 'python-editdistance'
|
||
|
pkgname=python-editdistance
|
||
|
version=0.3.1
|
||
|
revision=1
|
||
|
wrksrc="editdistance-${version}"
|
||
|
build_style=python-module
|
||
|
hostmakedepends="python-setuptools python3-setuptools"
|
||
|
makedepends="python-devel python3-devel"
|
||
|
short_desc="Fast implementation of the edit 'Levenshtein' distance (Python2)"
|
||
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||
|
homepage="https://github.com/aflc/editdistance"
|
||
|
license="MIT"
|
||
|
distfiles="${PYPI_SITE}/e/editdistance/editdistance-${version}.tar.gz"
|
||
|
checksum=8ec8a2158b9234adb0ca7ecfb0b4caa35e45ad5d00353c80793c9f54e1a35121
|
||
|
|
||
|
post_install() {
|
||
|
sed -n '/Copyright/,/SOFTWARE\./p' setup.py >LICENSE
|
||
|
vlicense LICENSE
|
||
|
}
|
||
|
|
||
|
python3-editdistance_package() {
|
||
|
short_desc="${short_desc/Python2/Python3}"
|
||
|
pkg_install() {
|
||
|
vmove usr/lib/python3*
|
||
|
vlicense LICENSE
|
||
|
}
|
||
|
}
|