39 lines
1007 B
Bash
39 lines
1007 B
Bash
# Template file for 'python-mpmath'
|
|
pkgname=python-mpmath
|
|
version=0.19
|
|
revision=2
|
|
noarch=yes
|
|
wrksrc="mpmath-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python"
|
|
pycompile_module="mpmath"
|
|
short_desc="Python2 library for arbitrary-precision floating-point arithmetic"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="http://mpmath.org/"
|
|
license="3-clause-BSD"
|
|
distfiles="${PYPI_SITE}/m/mpmath/mpmath-${version}.tar.gz"
|
|
checksum=68ddf6426dcda445323467d89892d2cffbbd1ae0b31ac1241b1b671749d63222
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-mpmath_package() {
|
|
noarch=yes
|
|
depends="python3"
|
|
pycompile_module="mpmath"
|
|
replaces="python3.4-mpmath>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|
|
python3.4-mpmath_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-mpmath>=${version}_${revision}"
|
|
}
|