diff --git a/srcpkgs/python-editdistance/template b/srcpkgs/python-editdistance/template new file mode 100644 index 00000000000..45dba44c875 --- /dev/null +++ b/srcpkgs/python-editdistance/template @@ -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 " +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 + } +} diff --git a/srcpkgs/python3-editdistance b/srcpkgs/python3-editdistance new file mode 120000 index 00000000000..70ec7823049 --- /dev/null +++ b/srcpkgs/python3-editdistance @@ -0,0 +1 @@ +python-editdistance \ No newline at end of file