void-packages/srcpkgs/python-numpy-stl/template
2019-02-14 09:52:27 -02:00

43 lines
1.3 KiB
Bash

# Template file for 'python-numpy-stl'
pkgname=python-numpy-stl
version=2.9.0
revision=1
wrksrc="numpy-stl-v${version}"
build_style=python-module
pycompile_module="stl"
hostmakedepends="python-setuptools python3-setuptools python-Cython python3-Cython"
makedepends="python-devel python3-devel python-numpy python3-numpy"
depends="python-setuptools python-numpy python-utils"
short_desc="Python2 library to make working with STL files fast and easy"
maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
license="BSD-3-Clause"
homepage="https://github.com/WoLpH/numpy-stl/"
distfiles="https://github.com/WoLpH/numpy-stl/releases/download/v${version}/numpy-stl-v${version}.tar.xz"
checksum=06bd41af8d07ca30faa4ab47756c9a1d36648985f7390f75d7f07fc9be85c979
alternatives="
numpy-stl:stl:/usr/bin/stl2
numpy-stl:stl2ascii:/usr/bin/stl2ascii2
numpy-stl:stl2bin:/usr/bin/stl2bin2"
pre_build() {
sed -i '/setup_requires=/d' setup.py
}
pkg_install() {
vlicense LICENSE
}
python3-numpy-stl_package() {
alternatives="
numpy-stl:stl:/usr/bin/stl3
numpy-stl:stl2ascii:/usr/bin/stl2ascii3
numpy-stl:stl2bin:/usr/bin/stl2bin3"
pycompile_module="stl"
depends="python3-setuptools python3-numpy python3-utils"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/bin/*3
vmove usr/lib/python3*
vlicense LICENSE
}
}