wok view python-sphinx/receipt @ rev 24503
updated dulwich (0.19.14 -> 0.19.16)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Feb 20 10:36:29 2022 +0100 (2022-02-20) |
parents | e707d374fb00 |
children | 3b333032b798 |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-sphinx"
4 VERSION="1.8.5"
5 CATEGORY="utilities"
6 SHORT_DESC="Documentation Tool."
7 MAINTAINER="claudinei@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://www.sphinx-doc.org/"
11 SOURCE="Sphinx"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
15 DEPENDS="python python-docutils python-jinja2 python-pygments python-setuptools"
16 BUILD_DEPENDS="$DEPENDS python-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://github.com/sphinx-doc/sphinx/releases 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
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/sphinx" ] ||
42 rm -rf "$1/var/lib/tazpkg/installed/sphinx"
43 }