wok view python-sphinx/receipt @ rev 25438

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Sep 01 11:12:31 2022 +0000 (21 months ago)
parents d7522d21c4d3
children 0262035dc1e7
line source
1 # SliTaz package receipt.
3 PACKAGE="python-sphinx"
4 VERSION="1.8.6"
5 CATEGORY="utilities"
6 SHORT_DESC="Documentation Tool."
7 MAINTAINER="claudinei@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://pypi.org/project/Sphinx/"
10 REPOLOGY="python:sphinx"
12 SOURCE="Sphinx"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
16 DEPENDS="python python-docutils python-jinja2 python-pygments"
17 BUILD_DEPENDS="python-dev python-setuptools"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://github.com/sphinx-doc/sphinx/releases 2>/dev/null | \
23 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 python setup.py build &&
30 python setup.py install --root=$DESTDIR
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cp -a $install/usr $fs
37 }
39 # Remove old package.
40 post_install()
41 {
42 [ ! -d "$1/var/lib/tazpkg/installed/sphinx" ] ||
43 rm -rf "$1/var/lib/tazpkg/installed/sphinx"
44 }