38 lines
1.2 KiB
Bash
38 lines
1.2 KiB
Bash
# Template file for 'python-Bottleneck'
|
|
pkgname=python-Bottleneck
|
|
version=1.2.0
|
|
revision=1
|
|
wrksrc="Bottleneck-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
makedepends="python-devel python3-devel python-numpy python3-numpy"
|
|
depends="python-numpy"
|
|
pycompile_module="bottleneck"
|
|
short_desc="Fast NumPy array functions written in C (Python2)"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="http://berkeleyanalytics.com/bottleneck/"
|
|
license="2-clause-BSD"
|
|
distfiles="${PYPI_SITE}/B/Bottleneck/Bottleneck-${version}.tar.gz"
|
|
checksum=3bec84564a4adbe97c24e875749b949a19cfba4e4588be495cc441db7c6b05e8
|
|
|
|
post_install() {
|
|
rm -f ${DESTDIR}/usr/lib/python*/site-packages/bottleneck/LICENSE
|
|
vlicense bottleneck/LICENSE
|
|
}
|
|
|
|
python3-Bottleneck_package() {
|
|
replaces="python3.4-Bottleneck>=0"
|
|
depends="python3-numpy"
|
|
pycompile_module="bottleneck"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense bottleneck/LICENSE
|
|
}
|
|
}
|
|
python3.4-Bottleneck_package() {
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-Bottleneck>=${version}_${revision}"
|
|
}
|