37 lines
1.2 KiB
Bash
37 lines
1.2 KiB
Bash
# Template file for 'python-jellyfish'
|
|
pkgname=python-jellyfish
|
|
version=0.5.2
|
|
revision=2
|
|
_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="41a6e3e7714420660ea13b3fab79f9c6189d0f7b58b80a41014ae166f7969420
|
|
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
|
|
}
|
|
}
|