wok-next diff python-pytz/receipt @ rev 21602
updated dstat (0.7.3 -> 0.7.4)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jun 24 15:19:05 2020 +0100 (2020-06-24) |
parents | add7e3ca3657 |
children |
line diff
1.1 --- a/python-pytz/receipt Fri Aug 31 17:13:06 2018 +0300 1.2 +++ b/python-pytz/receipt Wed Jun 24 15:19:05 2020 +0100 1.3 @@ -1,31 +1,25 @@ 1.4 # SliTaz package receipt v2. 1.5 1.6 +ORIGIN="pytz" 1.7 PACKAGE="python-pytz" 1.8 -VERSION="latest" 1.9 -CATEGORY="development" 1.10 +VERSION="2018.5" 1.11 +CATEGORY="python" 1.12 SHORT_DESC="World Timezone Definitions for Python" 1.13 MAINTAINER="al.bobylev@gmail.com" 1.14 LICENSE="MIT" 1.15 -WEB_SITE="https://pypi.org/project/pytz/" 1.16 +WEB_SITE="https://pypi.org/project/$ORIGIN/" 1.17 +HOST_ARCH="any" 1.18 REPOLOGY="python:pytz" 1.19 1.20 BUILD_DEPENDS="python python3" 1.21 -SPLIT="python3-pytz:py3" 1.22 +SPLIT="${PACKAGE/python/python3}:3" 1.23 1.24 compile_rules() { 1.25 - case $SET in 1.26 - '') pip='pip';; 1.27 - py3) pip='pip3';; 1.28 - esac 1.29 - $pip install --no-compile --root=$DESTDIR pytz 1.30 + pip$SET install --no-compile --root=$install $ORIGIN==$VERSION 1.31 } 1.32 1.33 genpkg_rules() { 1.34 - VERSION=$(find $install -type d -name 'pytz-*.dist-info' -exec basename '{}' \; \ 1.35 - | sed 's|pytz-\(.*\)\.dist-info|\1|') 1.36 copy @std 1.37 - case $PACKAGE in 1.38 - python-pytz) DEPENDS="python";; 1.39 - python3-pytz) DEPENDS="python3";; 1.40 - esac 1.41 + py="${PACKAGE%%-*}" # python/python3 1.42 + DEPENDS="$py" 1.43 }