wok-current view python-xlib/receipt @ rev 25715

Adjust deps between abiword / abiword-plugins
author Stanislas Leduc <shann@slitaz.org>
date Fri Jun 14 11:52:43 2024 +0000 (5 months ago)
parents 080c1dff8494
children
line source
1 # SliTaz package receipt.
3 PACKAGE="python-xlib"
4 VERSION="0.15rc1"
5 CATEGORY="development"
6 SHORT_DESC="X client library for Python programs."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://$PACKAGE.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS="python"
14 BUILD_DEPENDS="python"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/python-xlib/files/python-xlib/ 2>/dev/null | \
20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
21 sed '/scope="row/!d;s|.*/python-xlib/||;s|/.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 python ./setup.py install --root=$DESTDIR
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 cp -a $install/usr $fs
34 }