wok-current annotate python-xlib/receipt @ rev 25460
Update sourceforge.net web_sites with https://
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Sep 28 08:10:35 2022 +0000 (2022-09-28) |
parents | 080c1dff8494 |
children |
rev | line source |
---|---|
pascal@11214 | 1 # SliTaz package receipt. |
pascal@11214 | 2 |
pascal@11214 | 3 PACKAGE="python-xlib" |
pascal@11214 | 4 VERSION="0.15rc1" |
pascal@11214 | 5 CATEGORY="development" |
pascal@15377 | 6 SHORT_DESC="X client library for Python programs." |
pascal@11214 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15378 | 8 LICENSE="GPL" |
pascal@11214 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@25460 | 10 WEB_SITE="https://$PACKAGE.sourceforge.net/" |
pascal@11214 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@11214 | 12 |
pascal@11214 | 13 DEPENDS="python" |
pascal@11214 | 14 BUILD_DEPENDS="python" |
pascal@11214 | 15 |
pascal@24396 | 16 # What is the latest version available today? |
pascal@24396 | 17 current_version() |
pascal@24396 | 18 { |
pascal@24396 | 19 wget -O - https://sourceforge.net/projects/python-xlib/files/python-xlib/ 2>/dev/null | \ |
pascal@24396 | 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24396 | 21 sed '/scope="row/!d;s|.*/python-xlib/||;s|/.*||;q' |
pascal@24396 | 22 } |
pascal@24396 | 23 |
pascal@11214 | 24 # Rules to configure and make the package. |
pascal@11214 | 25 compile_rules() |
pascal@11214 | 26 { |
pascal@11214 | 27 python ./setup.py install --root=$DESTDIR |
pascal@11214 | 28 } |
pascal@11214 | 29 |
al@18086 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
al@18086 | 31 genpkg_rules() |
pascal@11214 | 32 { |
pascal@15376 | 33 cp -a $install/usr $fs |
pascal@11214 | 34 } |