wok-current view python-psutil/receipt @ rev 25042
Up lzsa (1.3.12), zstd (1.5.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 01 08:14:05 2022 +0000 (2022-06-01) |
parents | 1df6fa555414 |
children | 88b11e08f73a |
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 SOURCE="psutil"
10 WEB_SITE="https://pypi.org/project/$SOURCE/"
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 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||;q"
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 # Cross compilation hack
30 case "$ARCH" in
31 arm*)
32 mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
33 ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
34 /usr/bin/i486-slitaz-linux-gcc ;;
35 esac &&
37 python setup.py install --root=$DESTDIR
39 case "$ARCH" in
40 arm*)
41 rm /usr/bin/i486-slitaz-linux-gcc &&
42 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
43 esac
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 cp -a $install/usr $fs
50 }