wok view python-pyxml/receipt @ rev 25734
updated sc-im (-> 0.8.4)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Aug 22 14:48:42 2024 +0100 (2 months ago) |
parents | 7dd01dedad38 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-pyxml"
4 VERSION="0.8.4"
5 CATEGORY="development"
6 SHORT_DESC="Pythonic binding for xml..."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 SOURCE="PyXML"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="https://pyxml.sourceforge.net/"
12 WGET_URL="$SF_MIRROR/pyxml/$TARBALL"
14 DEPENDS="python"
15 BUILD_DEPENDS="python python-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/python-xlib/files/python-xlib/ 2>/dev/null | \
21 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
22 sed '/scope="row/!d;s|.*/python-xlib/||;s|/.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 patch -Np1 -i $stuff/fix-python2.6.patch
29 python setup.py build --with-xslt
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/pyxml" ] ||
43 rm -rf "$1/var/lib/tazpkg/installed/pyxml"
44 }