void-packages/srcpkgs/python-sympy/template
2019-12-23 18:05:42 +01:00

43 lines
1.2 KiB
Bash

# Template file for 'python-sympy'
pkgname=python-sympy
version=1.4
revision=2
archs=noarch
wrksrc="sympy-${version}"
build_style=python-module
pycompile_module="sympy isympy.py"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools python-mpmath"
short_desc="Computer algebra system for Python2"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="BSD-3-Clause"
homepage="https://sympy.org/"
distfiles="${PYPI_SITE}/s/sympy/sympy-${version}.tar.gz"
checksum=71a11e5686ae7ab6cb8feb5bd2651ef4482f8fd43a7c27e645a165e4353b23e1
alternatives="
sympy:isympy:/usr/bin/isympy2
sympy:isympy.1:/usr/share/man/man1/isympy2.1"
post_install() {
# create versioned man pages
mv ${DESTDIR}/usr/share/man/man1/isympy{,2}.1
vman doc/man/isympy.1 isympy3.1
vlicense LICENSE
}
python3-sympy_package() {
alternatives="
sympy:isympy:/usr/bin/isympy3
sympy:isympy.1:/usr/share/man/man1/isympy3.1"
archs=noarch
pycompile_module="sympy isympy.py"
depends="python3-setuptools python3-mpmath"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/bin/isympy3
vmove usr/lib/python3*
vmove usr/share/man/man1/isympy3.1
vlicense LICENSE
}
}