void-packages/srcpkgs/python-jellyfish/template
2016-03-15 11:05:00 +01:00

38 lines
1.2 KiB
Bash

# Template file for 'python-jellyfish'
pkgname=python-jellyfish
version=0.5.3
revision=1
_cjellyfish_ref=a3b62e71490d2d8ccecf317bb10f9ff954f2d509
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="6ddc756ac47d60c7d90ec749fa56fd8e218f7c00ea05740f3ea870446dc0dc62
0bf7e00822ba1327ee6488249cf83ecc5a0ea3dc27e713577f4418e52bdfc077"
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
}
}