void-packages/srcpkgs/python3-shapely/template

32 lines
979 B
Bash

# Template file for 'python3-shapely'
pkgname=python3-shapely
version=1.8.5.post1
revision=1
build_style=python3-module
build_helper=numpy
make_check_target=tests
hostmakedepends="python3-setuptools python3-Cython geos"
makedepends="python3-devel python3-numpy geos-devel"
depends="python3"
checkdepends="python3-pytest"
short_desc="Library for manipulation and analysis of geometric objects for Python3"
maintainer="Karl Nilsson <karl.robert.nilsson@gmail.com>"
license="BSD-3-Clause"
homepage="https://github.com/shapely/shapely"
distfiles="https://github.com/shapely/shapely/archive/${version}.tar.gz"
checksum=51badb76fa13ce1d4d6e5b2cbfef2b6af0ddae56a4449b84c3f3e6f404c6b43c
pre_configure() {
if [ "$CROSS_BUILD" ]; then
sed "
/^prefix=/s,=.*,=$XBPS_CROSS_BASE/usr,
s,echo [\$]{prefix}$,echo /usr,
" $XBPS_CROSS_BASE/usr/bin/geos-config >$XBPS_WRAPPERDIR/geos-config
chmod +x $XBPS_WRAPPERDIR/geos-config
fi
}
post_install() {
vlicense LICENSE.txt LICENSE
}