wok-current view python-pytz/receipt @ rev 25667
Up kernel to 5.10.210 and aufs5
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sat Mar 02 17:27:56 2024 +0000 (8 months ago) |
parents | 076f424196b2 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-pytz"
4 VERSION="2021.3"
5 CATEGORY="development"
6 SHORT_DESC="World Timezone Definitions for Python."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://pypi.org/project/pytz/"
10 REPOLOGY="python:pytz"
12 SOURCE="pytz"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
16 DEPENDS="python"
17 BUILD_DEPENDS="python python-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||"
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 python setup.py build &&
29 python setup.py install --root=$DESTDIR
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 cp -a $install/usr $fs
36 }
38 # Remove old package.
39 post_install()
40 {
41 [ ! -d "$1/var/lib/tazpkg/installed/pytz" ] ||
42 rm -rf "$1/var/lib/tazpkg/installed/pytz"
43 }