wok view python-pydot/receipt @ rev 24453

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 15 18:29:48 2022 +0000 (2022-02-15)
parents 1df6fa555414
children f5163fecf441
line source
1 # SliTaz package receipt.
3 PACKAGE="python-pydot"
4 VERSION="1.4.1"
5 CATEGORY="development"
6 SHORT_DESC="Python interface to Graphviz's dot language."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 SOURCE="pydot"
10 WEB_SITE="https://pypi.org/project/$SOURCE/"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
15 DEPENDS="graphviz python python-pyparsing"
16 BUILD_DEPENDS="python"
18 current_version()
19 {
20 wget -O - $WEB_SITE 2>/dev/null | sed '/ pydot /!d;s|.*pydot ||;q'
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/usr
34 cp -a $install/usr/lib $fs/usr
35 }
37 # Remove old package.
38 post_install()
39 {
40 [ ! -d "$1/var/lib/tazpkg/installed/pydot" ] ||
41 rm -rf "$1/var/lib/tazpkg/installed/pydot"
42 }