mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-04 03:42:56 +02:00
python-numpy-stl: fix template
- build C extension (this means the package is now arch-dependent, noarch=yes was missing otherwise) - add missing alternatives
This commit is contained in:
parent
42feb5b6be
commit
de7743451a
1 changed files with 20 additions and 7 deletions
|
@ -1,29 +1,42 @@
|
||||||
# Template file for 'python-numpy-stl'
|
# Template file for 'python-numpy-stl'
|
||||||
pkgname=python-numpy-stl
|
pkgname=python-numpy-stl
|
||||||
version=2.3.2
|
version=2.3.2
|
||||||
revision=1
|
revision=2
|
||||||
build_style=python-module
|
|
||||||
wrksrc="numpy-stl-${version}"
|
wrksrc="numpy-stl-${version}"
|
||||||
hostmakedepends="python-setuptools python3-setuptools"
|
build_style=python-module
|
||||||
makedepends="python-devel python3-devel python-numpy python3-numpy"
|
|
||||||
depends="python-numpy python-enum34 python-utils"
|
|
||||||
pycompile_module="stl"
|
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-enum34 python-utils"
|
||||||
short_desc="Python2 library to make working with STL files fast and easy"
|
short_desc="Python2 library to make working with STL files fast and easy"
|
||||||
maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
|
maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
|
||||||
license="3-Clause-BSD"
|
license="BSD-3-Clause"
|
||||||
homepage="https://github.com/WoLpH/numpy-stl/"
|
homepage="https://github.com/WoLpH/numpy-stl/"
|
||||||
distfiles="https://github.com/WoLpH/numpy-stl/archive/v${version}.tar.gz"
|
distfiles="https://github.com/WoLpH/numpy-stl/archive/v${version}.tar.gz"
|
||||||
checksum=0b5fb6445297c055166d2c9a47cafb663557ddc178f514f6ad98226645082882
|
checksum=0b5fb6445297c055166d2c9a47cafb663557ddc178f514f6ad98226645082882
|
||||||
|
|
||||||
|
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() {
|
pkg_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
python3-numpy-stl_package() {
|
python3-numpy-stl_package() {
|
||||||
depends="python3-numpy python3-utils"
|
alternatives="
|
||||||
|
numpy-stl:stl:/usr/bin/stl3
|
||||||
|
numpy-stl:stl2ascii:/usr/bin/stl2ascii3
|
||||||
|
numpy-stl:stl2bin:/usr/bin/stl2bin3"
|
||||||
pycompile_module="stl"
|
pycompile_module="stl"
|
||||||
|
depends="python3-setuptools python3-numpy python3-utils"
|
||||||
short_desc="${short_desc/Python2/Python3}"
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
|
vmove usr/bin/*3
|
||||||
vmove usr/lib/python3*
|
vmove usr/lib/python3*
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue