New package: python-editdistance-0.3.1
This commit is contained in:
parent
db827d82a3
commit
8b62d6f456
27
srcpkgs/python-editdistance/template
Normal file
27
srcpkgs/python-editdistance/template
Normal file
@ -0,0 +1,27 @@
|
||||
# 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
|
||||
}
|
||||
}
|
1
srcpkgs/python3-editdistance
Symbolic link
1
srcpkgs/python3-editdistance
Symbolic link
@ -0,0 +1 @@
|
||||
python-editdistance
|
Loading…
Reference in New Issue
Block a user