wok-next annotate python-pytz/receipt @ rev 20957
Random updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Sep 05 15:26:05 2018 +0300 (2018-09-05) |
parents | 92698cd69f34 |
children | c9a7a7b42a86 |
rev | line source |
---|---|
al@20948 | 1 # SliTaz package receipt v2. |
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" |
al@20948 | 7 MAINTAINER="al.bobylev@gmail.com" |
pascal@15378 | 8 LICENSE="MIT" |
al@20948 | 9 WEB_SITE="https://pypi.org/project/pytz/" |
al@20887 | 10 REPOLOGY="python:pytz" |
claudinei@3416 | 11 |
al@20948 | 12 BUILD_DEPENDS="python python3" |
al@20948 | 13 SPLIT="python3-pytz:py3" |
pascal@15378 | 14 |
al@20443 | 15 compile_rules() { |
al@20948 | 16 case $SET in |
al@20948 | 17 '') pip='pip';; |
al@20948 | 18 py3) pip='pip3';; |
al@20948 | 19 esac |
al@20948 | 20 $pip install --no-compile --root=$DESTDIR pytz |
claudinei@3416 | 21 } |
claudinei@3416 | 22 |
al@20443 | 23 genpkg_rules() { |
al@20948 | 24 VERSION=$(find $install -type d -name 'pytz-*.dist-info' -exec basename '{}' \; \ |
al@20948 | 25 | sed 's|pytz-\(.*\)\.dist-info|\1|') |
al@19763 | 26 copy @std |
al@20948 | 27 case $PACKAGE in |
al@20948 | 28 python-pytz) DEPENDS="python";; |
al@20948 | 29 python3-pytz) DEPENDS="python3";; |
al@20948 | 30 esac |
claudinei@3416 | 31 } |