wok-current annotate python-lxml/receipt @ rev 24303

linux64-aufs: fix git branch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jan 15 16:48:52 2022 +0000 (2022-01-15)
parents 811dfc4df628
children 076f424196b2
rev   line source
pascal@1626 1 # SliTaz package receipt.
pascal@1626 2
pascal@1626 3 PACKAGE="python-lxml"
Hans-G?nter@23504 4 VERSION="4.5.0"
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"
pascal@15385 8 LICENSE="BSD GPL PSL"
Hans-G?nter@23504 9 WEB_SITE="https://pypi.org/project/lxml/"
Hans-G?nter@23504 10
pascal@1626 11 SOURCE="lxml"
Hans-G?nter@23504 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23504 13 WGET_URL="https://files.pythonhosted.org/packages/source/l/$SOURCE/$TARBALL"
pascal@15379 14
Hans-G?nter@23504 15 DEPENDS="libxml2 libxslt python zlib"
Hans-G?nter@23504 16 BUILD_DEPENDS="libxml2 libxml2-dev libxslt libxslt-dev python python-dev python-setuptools"
pascal@1626 17
pascal@24288 18 current_version()
pascal@24288 19 {
pascal@24288 20 wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||'
pascal@24288 21 }
pascal@24288 22
pascal@1626 23 # Rules to configure and make the package.
pascal@1626 24 compile_rules()
pascal@1626 25 {
Hans-G?nter@23508 26 # make
Hans-G?nter@23508 27 python setup.py build &&
Hans-G?nter@23504 28 python setup.py install --root=$DESTDIR
pascal@1626 29 }
pascal@1626 30
pascal@1626 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1626 32 genpkg_rules()
pascal@1626 33 {
Hans-G?nter@23504 34 cp -a $install/usr $fs
pascal@1626 35 }