void-packages/srcpkgs/python3-pivy/template

42 lines
1.1 KiB
Bash

# Template file for 'python3-pivy'
pkgname=python3-pivy
version=0.6.5
revision=1
wrksrc="pivy-${version}"
build_style=python3-module
hostmakedepends="python3-devel swig"
makedepends="python3-devel coin3-devel qt5-devel"
short_desc="Python3 bindings for the high-level 3D graphics library Coin"
maintainer="yopito <pierre.bourgin@free.fr>"
license="0BSD"
homepage="https://github.com/coin3d/pivy"
distfiles="${homepage}/archive/${version}.tar.gz"
checksum=16f2e339e5c59a6438266abe491013a20f53267e596850efad1559564a2c1719
case "$XBPS_TARGET_MACHINE" in
ppc64*);;
ppc*) broken="{standard input}:3376761: Error: operand out of range";;
esac
if [ "$CROSS_BUILD" ]; then
CFLAGS+=" -I$XBPS_CROSS_BASE/usr/include/Coin3"
fi
post_extract() (
# use setup_old.py until have Coin with cmake support
mv -f setup_old.py setup.py
)
post_patch() {
if [ "$CROSS_BUILD" ]; then
vsed -i setup.py \
-e '/if not self[.]check_cmd_exists.*coin-config/,+1d' \
-e "s!coin-config!$XBPS_CROSS_BASE/usr/bin/coin-config!" \
-e "/INCLUDE_DIR.*coin-config/s!=!= \"$XBPS_CROSS_BASE\" +!"
fi
}
post_install() {
vlicense LICENSE
}