mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-15 03:23:50 +02:00
New package: python-editdistance-0.3.1
This commit is contained in:
parent
db827d82a3
commit
8b62d6f456
2 changed files with 28 additions and 0 deletions
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…
Add table
Reference in a new issue