wok-6.x annotate python-phonenumbers/receipt @ rev 24328
updated asunder (2.9.5 -> 2.9.7)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jan 27 14:28:54 2022 +0100 (2022-01-27) |
parents | 8915ca584666 |
children | 076f424196b2 |
rev | line source |
---|---|
pascal@14438 | 1 # SliTaz package receipt. |
pascal@14438 | 2 |
pascal@14438 | 3 PACKAGE="python-phonenumbers" |
Hans-G?nter@23526 | 4 VERSION="8.12.1" |
pascal@14438 | 5 CATEGORY="development" |
Hans-G?nter@23526 | 6 SHORT_DESC="Common library for parsing, formatting, storing and validating international phone numbers." |
pascal@14438 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15379 | 8 LICENSE="Apache" |
Hans-G?nter@23526 | 9 WEB_SITE="https://pypi.org/project/phonenumbers/" |
Hans-G?nter@23526 | 10 |
Hans-G?nter@23526 | 11 SOURCE="phonenumbers" |
pascal@14438 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23526 | 13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
pascal@14438 | 14 |
pascal@14438 | 15 DEPENDS="python" |
Hans-G?nter@23526 | 16 BUILD_DEPENDS="python python-dev" |
pascal@14438 | 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@14438 | 23 # Rules to configure and make the package. |
pascal@14438 | 24 compile_rules() |
pascal@14438 | 25 { |
pascal@14438 | 26 python setup.py build && |
pascal@14438 | 27 python setup.py install --root=$DESTDIR |
pascal@14438 | 28 } |
pascal@14438 | 29 |
pascal@14438 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@14438 | 31 genpkg_rules() |
pascal@14438 | 32 { |
Hans-G?nter@23526 | 33 cp -a $install/usr $fs |
pascal@14438 | 34 } |