wok view python-pyxml/receipt @ rev 24801
updated libiodbc and libiodbc-dev (3.52.13 -> 3.52.15)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 22 10:00:57 2022 +0100 (2022-03-22) |
parents | 9e01bc6321ea |
children | 7dd01dedad38 |
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="http://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|.*href="|"https://sourceforge.net|;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 }