32 lines
973 B
Bash
32 lines
973 B
Bash
# Template file for 'python3-shapely'
|
|
pkgname=python3-shapely
|
|
version=1.8.4
|
|
revision=2
|
|
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=e27c49ab0019b9e47bf4f35545b2868af34731e22be755f56f22b5278d3e4efd
|
|
|
|
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
|
|
}
|