wok-current annotate python-pytz/receipt @ rev 25485

BootProg/fat32: active fat support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Nov 01 16:13:12 2022 +0000 (2022-11-01)
parents 076f424196b2
children
rev   line source
claudinei@3416 1 # SliTaz package receipt.
claudinei@3416 2
claudinei@3416 3 PACKAGE="python-pytz"
Hans-G?nter@25231 4 VERSION="2021.3"
claudinei@3416 5 CATEGORY="development"
claudinei@3416 6 SHORT_DESC="World Timezone Definitions for Python."
claudinei@3416 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15378 8 LICENSE="MIT"
Hans-G?nter@23549 9 WEB_SITE="https://pypi.org/project/pytz/"
Hans-G?nter@25231 10 REPOLOGY="python:pytz"
Hans-G?nter@23549 11
Hans-G?nter@25231 12 SOURCE="pytz"
Hans-G?nter@23549 13 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23549 14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
claudinei@3416 15
pascal@15378 16 DEPENDS="python"
Hans-G?nter@23549 17 BUILD_DEPENDS="python python-dev"
pascal@15378 18
pascal@24383 19 # What is the latest version available today?
pascal@24288 20 current_version()
pascal@24288 21 {
pascal@24383 22 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||"
pascal@24288 23 }
pascal@24288 24
pascal@24288 25 # Rules to configure and make the package.
claudinei@3416 26 compile_rules()
claudinei@3416 27 {
claudinei@3416 28 python setup.py build &&
pascal@15378 29 python setup.py install --root=$DESTDIR
claudinei@3416 30 }
claudinei@3416 31
claudinei@3416 32 # Rules to gen a SliTaz package suitable for Tazpkg.
claudinei@3416 33 genpkg_rules()
claudinei@3416 34 {
Hans-G?nter@23549 35 cp -a $install/usr $fs
claudinei@3416 36 }
claudinei@3416 37
claudinei@3416 38 # Remove old package.
claudinei@3416 39 post_install()
claudinei@3416 40 {
pascal@18730 41 [ ! -d "$1/var/lib/tazpkg/installed/pytz" ] ||
pascal@18730 42 rm -rf "$1/var/lib/tazpkg/installed/pytz"
claudinei@3416 43 }