wok-next view python-psutil/receipt @ rev 20909
Update homepages
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Aug 13 00:47:17 2018 +0300 (2018-08-13) |
parents | 9b3461bf373c |
children | c9a7a7b42a86 |
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 WEB_SITE="https://pypi.org/project/psutil/"
10 REPOLOGY="python:psutil"
12 SOURCE="psutil"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="http://psutil.googlecode.com/files/$TARBALL" # FIXME
16 DEPENDS="python"
17 BUILD_DEPENDS="python-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 # Cross compilation hack
23 case "$ARCH" in
24 arm*)
25 mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
26 ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
27 /usr/bin/i486-slitaz-linux-gcc ;;
28 esac &&
29 python setup.py install --root=$DESTDIR
30 case "$ARCH" in
31 arm*)
32 rm /usr/bin/i486-slitaz-linux-gcc &&
33 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
34 esac
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 cp -a $install/usr $fs
41 }