wok view python-pychart/receipt @ rev 25155
updated proxytunnel (1.9.0 -> 1.10)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jun 30 15:35:33 2022 +0100 (2022-06-30) |
parents | 51ef9f5adf6d |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-pychart"
4 VERSION="1.39"
5 CATEGORY="development"
6 SHORT_DESC="Python library for creating EPS, PDF, PNG or SVG."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL"
9 SOURCE="Python-Chart"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="https://pypi.org/project/$SOURCE/"
12 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
14 DEPENDS="python"
15 BUILD_DEPENDS="python"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $WEB_SITE 2>/dev/null | sed '/ Python-Chart /!d;s|.*Python-Chart ||'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 python setup.py build
27 python setup.py install --root=$DESTDIR
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs
34 cp -a $install/usr $fs
35 }
37 # Remove old package.
38 post_install()
39 {
40 [ ! -d "$1/var/lib/tazpkg/installed/pychart" ] ||
41 rm -rf "$1/var/lib/tazpkg/installed/pychart"
42 }