wok-next annotate python-pytz/receipt @ rev 20732

Some python-* packaged using pip: actualize $VERSION in genpkg_rules()
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue May 29 17:01:41 2018 +0300 (2018-05-29)
parents 6c73b944e8dd
children 92698cd69f34
rev   line source
claudinei@3416 1 # SliTaz package receipt.
claudinei@3416 2
claudinei@3416 3 PACKAGE="python-pytz"
al@20732 4 VERSION="latest"
claudinei@3416 5 CATEGORY="development"
al@19763 6 SHORT_DESC="World Timezone Definitions for Python"
claudinei@3416 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15378 8 LICENSE="MIT"
al@19763 9 WEB_SITE="https://pypi.python.org/pypi/pytz"
claudinei@3416 10
al@20444 11 BUILD_DEPENDS="python"
pascal@15378 12
al@20443 13 compile_rules() {
al@19763 14 pip install --no-compile --root=$DESTDIR pytz
claudinei@3416 15 }
claudinei@3416 16
al@20443 17 genpkg_rules() {
al@20732 18 VERSION=$(sed -n '/^Successfully installed/ s|.*pytz-||p' $LOGS/$PACKAGE.log)
al@19763 19 copy @std
al@19763 20 DEPENDS="python"
claudinei@3416 21 }