wok-6.x view python-psutil/receipt @ rev 24326

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jan 27 12:16:00 2022 +0000 (2022-01-27)
parents a94e3ac8c679
children 076f424196b2
line source
1 # SliTaz package receipt.
3 PACKAGE="python-psutil"
4 VERSION="5.7.0"
5 CATEGORY="development"
6 SHORT_DESC="A process and system utilities module for Python."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://pypi.org/project/$SOURCE/"
11 SOURCE="psutil"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://files.pythonhosted.org/packages/source/p/$SOURCE/$TARBALL"
15 DEPENDS="python"
16 BUILD_DEPENDS="python python-dev python-setuptools"
18 HOST_ARCH="i486 arm"
20 current_version()
21 {
22 wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 # Cross compilation hack
29 case "$ARCH" in
30 arm*)
31 mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
32 ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
33 /usr/bin/i486-slitaz-linux-gcc ;;
34 esac &&
36 python setup.py install --root=$DESTDIR
38 case "$ARCH" in
39 arm*)
40 rm /usr/bin/i486-slitaz-linux-gcc &&
41 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
42 esac
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 cp -a $install/usr $fs
49 }