wok annotate python-pyxml/receipt @ rev 24686

updated jbig2dec and jbig2dec-dev (0.18 -> 0.19)
author Hans-G?nter Theisgen
date Sat Mar 12 11:26:36 2022 +0100 (2022-03-12)
parents 9e01bc6321ea
children 7dd01dedad38
rev   line source
claudinei@3414 1 # SliTaz package receipt.
claudinei@3414 2
claudinei@3414 3 PACKAGE="python-pyxml"
claudinei@3414 4 VERSION="0.8.4"
claudinei@3414 5 CATEGORY="development"
claudinei@3414 6 SHORT_DESC="Pythonic binding for xml..."
claudinei@3414 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15378 8 LICENSE="BSD"
claudinei@3414 9 SOURCE="PyXML"
claudinei@3414 10 TARBALL="$SOURCE-$VERSION.tar.gz"
claudinei@3414 11 WEB_SITE="http://pyxml.sourceforge.net/"
claudinei@3414 12 WGET_URL="$SF_MIRROR/pyxml/$TARBALL"
pascal@11853 13
claudinei@3414 14 DEPENDS="python"
pascal@11853 15 BUILD_DEPENDS="python python-dev"
claudinei@3414 16
pascal@24396 17 # What is the latest version available today?
pascal@24396 18 current_version()
pascal@24396 19 {
pascal@24396 20 wget -O - https://sourceforge.net/projects/python-xlib/files/python-xlib/ 2>/dev/null | \
pascal@24396 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24396 22 sed '/scope="row/!d;s|.*/python-xlib/||;s|/.*||;q'
pascal@24396 23 }
pascal@24396 24
claudinei@3414 25 # Rules to configure and make the package.
claudinei@3414 26 compile_rules()
claudinei@3414 27 {
slaxemulator@9674 28 patch -Np1 -i $stuff/fix-python2.6.patch
claudinei@3414 29 python setup.py build --with-xslt
slaxemulator@9674 30 python setup.py install --root=$DESTDIR
claudinei@3414 31 }
claudinei@3414 32
claudinei@3414 33 # Rules to gen a SliTaz package suitable for Tazpkg.
claudinei@3414 34 genpkg_rules()
claudinei@3414 35 {
pascal@15378 36 cp -a $install/usr $fs
claudinei@3414 37 }
claudinei@3414 38
claudinei@3414 39 # Remove old package.
claudinei@3414 40 post_install()
claudinei@3414 41 {
pascal@18730 42 [ ! -d "$1/var/lib/tazpkg/installed/pyxml" ] ||
pascal@18730 43 rm -rf "$1/var/lib/tazpkg/installed/pyxml"
al@18086 44 }