37 lines
1.2 KiB
Bash
37 lines
1.2 KiB
Bash
# Template file for 'python-jellyfish'
|
|
pkgname=python-jellyfish
|
|
version=0.5.6
|
|
revision=1
|
|
_cjellyfish_ref=a319d6ae04134f3c2bcd383012afab5645fba503
|
|
create_wrksrc=yes
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
build_wrksrc="${pkgname#*-}-${version}"
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
pycompile_module="jellyfish"
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
makedepends="python-devel python3.4-devel"
|
|
depends="python"
|
|
short_desc="A Python2 library for approximate and phonetic matching of strings"
|
|
maintainer="Duncaen <duncaen@voidlinux.eu>"
|
|
license="BSD"
|
|
homepage="https://github.com/sunlightlabs/jellyfish"
|
|
distfiles="https://github.com/sunlightlabs/${pkgname#*-}/archive/${version}.tar.gz
|
|
https://github.com/jamesturk/cjellyfish/archive/${_cjellyfish_ref}.tar.gz"
|
|
checksum="2e31dddf863a360966fd997ebd60c692ad56cbdbb0a352956c0aeae6af1b07b5
|
|
11a2944fdccd617f28a93c78e47e3df869f6ecd2ca88fcbe28ea5657b3fab615"
|
|
|
|
post_extract() {
|
|
mv ${wrksrc}/cjellyfish-${_cjellyfish_ref}/* ${wrksrc}/${build_wrksrc}/cjellyfish
|
|
}
|
|
|
|
python3.4-jellyfish_package() {
|
|
depends="python3.4"
|
|
replaces="python3.4-jellyfish>=0"
|
|
pycompile_version="3.4"
|
|
pycompile_module="jellyfish"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3.4
|
|
}
|
|
}
|