wok-6.x view python-psutil/receipt @ rev 22288
linld: 8086 may load zImage (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 13 15:08:02 2019 +0100 (2019-11-13) |
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 }