wok-current view python-psutil/receipt @ rev 23310
updated perl-datetime (1.20 -> 1.52)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Mar 30 14:39:36 2020 +0100 (2020-03-30) |
parents | 6135577f4d08 |
children | a94e3ac8c679 |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-psutil"
4 VERSION="0.6.1"
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 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="https://pypi.org/project/$SOURCE/"
12 WGET_URL="http://psutil.googlecode.com/files/$TARBALL"
13 HOST_ARCH="i486 arm"
15 DEPENDS="python"
16 BUILD_DEPENDS="python-dev python-setuptools"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 # Cross compilation hack
22 case "$ARCH" in
23 arm*)
24 mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
25 ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
26 /usr/bin/i486-slitaz-linux-gcc ;;
27 esac &&
28 python setup.py install --root=$DESTDIR
29 case "$ARCH" in
30 arm*)
31 rm /usr/bin/i486-slitaz-linux-gcc &&
32 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
33 esac
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 cp -a $install/usr $fs
40 }