wok-6.x view python-psutil/receipt @ rev 25432
motion: adapted configuration parameters to version 4.4.0
author | Hans-G?nter Theisgen |
---|---|
date | Sun Aug 21 17:07:48 2022 +0100 (24 months ago) |
parents | 076f424196b2 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-psutil"
4 VERSION="5.9.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/psutil/"
11 SOURCE="psutil"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$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 }