wok annotate python-lxml/receipt @ rev 25443
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Sep 03 09:28:15 2022 +0000 (2022-09-03) |
parents | 076f424196b2 |
children |
rev | line source |
---|---|
pascal@1626 | 1 # SliTaz package receipt. |
pascal@1626 | 2 |
pascal@1626 | 3 PACKAGE="python-lxml" |
Hans-G?nter@25201 | 4 VERSION="4.7.1" |
pascal@1626 | 5 CATEGORY="development" |
pascal@1626 | 6 SHORT_DESC="Pythonic binding for the libxml2 and libxslt libraries.." |
pascal@1626 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
Hans-G?nter@25201 | 8 LICENSE="BSD" |
Hans-G?nter@23504 | 9 WEB_SITE="https://pypi.org/project/lxml/" |
Hans-G?nter@25201 | 10 REPOLOGY="python:lxml" |
Hans-G?nter@23504 | 11 |
pascal@1626 | 12 SOURCE="lxml" |
Hans-G?nter@23504 | 13 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@25201 | 14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
pascal@15379 | 15 |
Hans-G?nter@23504 | 16 DEPENDS="libxml2 libxslt python zlib" |
Hans-G?nter@25201 | 17 BUILD_DEPENDS="libxml2 libxml2-dev libxslt libxslt-dev python-dev python-setuptools" |
pascal@1626 | 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 |
pascal@1626 | 25 # Rules to configure and make the package. |
pascal@1626 | 26 compile_rules() |
pascal@1626 | 27 { |
Hans-G?nter@23508 | 28 python setup.py build && |
Hans-G?nter@23504 | 29 python setup.py install --root=$DESTDIR |
pascal@1626 | 30 } |
pascal@1626 | 31 |
pascal@1626 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1626 | 33 genpkg_rules() |
pascal@1626 | 34 { |
Hans-G?nter@23504 | 35 cp -a $install/usr $fs |
pascal@1626 | 36 } |