wok annotate python-shapely/receipt @ rev 24336

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 28 18:19:21 2022 +0000 (2022-01-28)
parents 7fa8682f5eca
children 076f424196b2
rev   line source
pascal@16723 1 # SliTaz package receipt.
pascal@16723 2
pascal@16723 3 PACKAGE="python-shapely"
Hans-G?nter@23560 4 VERSION="1.7.0"
pascal@16723 5 CATEGORY="development"
pascal@16723 6 SHORT_DESC="Manipulation and analysis of geometric objects in the Cartesian plane."
pascal@16723 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@16723 8 LICENSE="BSD"
Hans-G?nter@23560 9 WEB_SITE="https://pypi.org/project/Shapely/"
Hans-G?nter@23560 10
pascal@16723 11 SOURCE="Shapely"
pascal@16723 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23560 13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
pascal@16723 14
Hans-G?nter@23560 15 DEPENDS="geos python"
Hans-G?nter@23560 16 BUILD_DEPENDS="geos-dev python python-dev"
pascal@16723 17
pascal@24288 18 current_version()
pascal@24288 19 {
pascal@24288 20 wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||'
pascal@24288 21 }
pascal@24288 22
pascal@16723 23 # Rules to configure and make the package.
pascal@16723 24 compile_rules()
pascal@16723 25 {
pascal@16723 26 python setup.py install --root=$DESTDIR
pascal@16723 27 }
pascal@16723 28
pascal@16723 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@16723 30 genpkg_rules()
pascal@16723 31 {
Hans-G?nter@23560 32 cp -a $install/usr $fs
pascal@16723 33 }