wok view python-docutils/receipt @ rev 25322

cpige: remove -static
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 22 07:58:08 2022 +0000 (2022-07-22)
parents 076f424196b2
children
line source
1 # SliTaz package receipt.
3 PACKAGE="python-docutils"
4 VERSION="0.18.1"
5 CATEGORY="development"
6 SHORT_DESC="Text processing system."
7 MAINTAINER="claudinei@slitaz.org"
8 LICENSE="PublicDomain GPL3 BSD"
9 WEB_SITE="https://pypi.org/project/docutils"
10 REPOLOGY="python:docutils"
12 SOURCE="docutils"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
16 SUGGESTED="python-pil"
17 DEPENDS="python"
18 BUILD_DEPENDS="python python-dev python-setuptools"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||"
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 python setup.py \
30 install \
31 --root=$DESTDIR
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cook_copy_folders bin
38 cook_copy_folders lib
39 }
41 # Remove old package.
42 post_install()
43 {
44 [ ! -d "$1/var/lib/tazpkg/installed/docutils" ] ||
45 rm -rf "$1/var/lib/tazpkg/installed/docutils"
46 }