wok-6.x annotate python-docutils/receipt @ rev 24495

updated dolibarr again (10.0.6 -> 14.0.5)
author Hans-G?nter Theisgen
date Sat Feb 19 13:42:19 2022 +0100 (2022-02-19)
parents 1df6fa555414
children 382418015236
rev   line source
claudinei@3392 1 # SliTaz package receipt.
claudinei@3392 2
claudinei@3392 3 PACKAGE="python-docutils"
Hans-G?nter@23480 4 VERSION="0.16"
claudinei@3392 5 CATEGORY="development"
claudinei@3392 6 SHORT_DESC="Text processing system."
claudinei@3392 7 MAINTAINER="claudinei@slitaz.org"
pascal@15379 8 LICENSE="PublicDomain GPL3 BSD"
Hans-G?nter@23480 9 WEB_SITE="https://pypi.org/project/docutils"
Hans-G?nter@23480 10
Hans-G?nter@23480 11 SOURCE="docutils"
claudinei@14874 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23480 13 WGET_URL="https://files.pythonhosted.org/packages/source/d/$SOURCE/$TARBALL"
Hans-G?nter@23480 14
Hans-G?nter@23480 15 SUGGESTED="python-pil"
claudinei@3392 16 DEPENDS="python"
Hans-G?nter@23480 17 BUILD_DEPENDS="python python-dev python-setuptools"
claudinei@3392 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
claudinei@3392 25 # Rules to configure and make the package.
claudinei@3392 26 compile_rules()
claudinei@3392 27 {
claudinei@14874 28 python setup.py install --root=$DESTDIR
claudinei@3392 29 }
claudinei@3392 30
claudinei@3392 31 # Rules to gen a SliTaz package suitable for Tazpkg.
claudinei@3392 32 genpkg_rules()
claudinei@3392 33 {
Hans-G?nter@23480 34 cp -a $install/usr $fs
claudinei@3392 35 }
claudinei@3392 36
claudinei@3404 37 # Remove old package.
claudinei@3404 38 post_install()
claudinei@3404 39 {
pascal@18730 40 [ ! -d "$1/var/lib/tazpkg/installed/docutils" ] ||
pascal@18730 41 rm -rf "$1/var/lib/tazpkg/installed/docutils"
claudinei@3404 42 }