wok-current annotate python-geojson/receipt @ rev 25601

use gcc49-lib-base for openldap-dev
author Stanislas Leduc <shann@slitaz.org>
date Fri Sep 01 12:04:33 2023 +0000 (16 months ago)
parents 346b75d5b2c5
children
rev   line source
pascal@16723 1 # SliTaz package receipt.
pascal@16723 2
pascal@16723 3 PACKAGE="python-geojson"
Hans-G?nter@23490 4 VERSION="2.5.0"
pascal@16723 5 CATEGORY="development"
Hans-G?nter@23490 6 SHORT_DESC="Encoder and decoder for simple GIS features."
pascal@16723 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@16723 8 LICENSE="BSD"
Hans-G?nter@23490 9 WEB_SITE="https://pypi.python.org/pypi/geojson/$VERSION"
Hans-G?nter@23490 10
pascal@16723 11 SOURCE="geojson"
pascal@16723 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23490 13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
pascal@16723 14
pascal@16723 15 DEPENDS="python"
Hans-G?nter@23490 16 BUILD_DEPENDS="python python-setuptools"
pascal@16723 17
pascal@24391 18 # What is the latest version available today?
pascal@24391 19 current_version()
pascal@24391 20 {
pascal@24391 21 wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \
pascal@24391 22 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||;q"
pascal@24391 23 }
pascal@24391 24
pascal@16723 25 # Rules to configure and make the package.
pascal@16723 26 compile_rules()
pascal@16723 27 {
pascal@16723 28 python setup.py install --root=$DESTDIR
pascal@16723 29 }
pascal@16723 30
pascal@16723 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@16723 32 genpkg_rules()
pascal@16723 33 {
Hans-G?nter@23490 34 cp -a $install/usr $fs
pascal@16723 35 }