wok-6.x annotate python-pytz/receipt @ rev 23997
linld: add iso support (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 08 20:36:59 2021 +0000 (2021-01-08) |
parents | 9e01bc6321ea |
children | 1df6fa555414 |
rev | line source |
---|---|
claudinei@3416 | 1 # SliTaz package receipt. |
claudinei@3416 | 2 |
claudinei@3416 | 3 PACKAGE="python-pytz" |
claudinei@3416 | 4 SOURCE="pytz" |
Hans-G?nter@23549 | 5 VERSION="2019.3" |
claudinei@3416 | 6 CATEGORY="development" |
claudinei@3416 | 7 SHORT_DESC="World Timezone Definitions for Python." |
claudinei@3416 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15378 | 9 LICENSE="MIT" |
Hans-G?nter@23549 | 10 WEB_SITE="https://pypi.org/project/pytz/" |
Hans-G?nter@23549 | 11 |
Hans-G?nter@23549 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@23549 | 13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
claudinei@3416 | 14 |
pascal@15378 | 15 DEPENDS="python" |
Hans-G?nter@23549 | 16 BUILD_DEPENDS="python python-dev" |
pascal@15378 | 17 |
claudinei@3416 | 18 # Rules to configure and make the package. |
claudinei@3416 | 19 compile_rules() |
claudinei@3416 | 20 { |
claudinei@3416 | 21 python setup.py build && |
pascal@15378 | 22 python setup.py install --root=$DESTDIR |
claudinei@3416 | 23 } |
claudinei@3416 | 24 |
claudinei@3416 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3416 | 26 genpkg_rules() |
claudinei@3416 | 27 { |
claudinei@3416 | 28 mkdir -p $fs |
Hans-G?nter@23549 | 29 cp -a $install/usr $fs |
claudinei@3416 | 30 } |
claudinei@3416 | 31 |
claudinei@3416 | 32 # Remove old package. |
claudinei@3416 | 33 post_install() |
claudinei@3416 | 34 { |
pascal@18730 | 35 [ ! -d "$1/var/lib/tazpkg/installed/pytz" ] || |
pascal@18730 | 36 rm -rf "$1/var/lib/tazpkg/installed/pytz" |
claudinei@3416 | 37 } |