wok view python-psutil/receipt @ rev 21169
updated libdrm packages (2.4.92 -> 2.4.97)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 01 14:48:43 2019 +0100 (2019-04-01) |
parents | 7390f8de9846 |
children | 814362194a8d |
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 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 }