wok view python-psutil/receipt @ rev 23614
updated redis (2.8.19 -> 5.0.8)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 14 07:29:26 2020 +0100 (2020-04-14) |
parents | 814362194a8d |
children | 1df6fa555414 |
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 WEB_SITE="https://pypi.org/project/$SOURCE/"
11 SOURCE="psutil"
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 # Rules to configure and make the package.
21 compile_rules()
22 {
23 # Cross compilation hack
24 case "$ARCH" in
25 arm*)
26 mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
27 ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
28 /usr/bin/i486-slitaz-linux-gcc ;;
29 esac &&
31 python setup.py install --root=$DESTDIR
33 case "$ARCH" in
34 arm*)
35 rm /usr/bin/i486-slitaz-linux-gcc &&
36 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
37 esac
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 cp -a $install/usr $fs
44 }