32 lines
1,001 B
Bash
32 lines
1,001 B
Bash
# Template file for 'python3-shapely'
|
|
pkgname=python3-shapely
|
|
version=1.8.1
|
|
revision=1
|
|
wrksrc="shapely-${version}"
|
|
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=daf4d5ceae7d1e4053d96af760377b843787cae0b42e6d9d19eb832204c7c8a4
|
|
|
|
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
|
|
}
|