wok-current view python-psutil/receipt @ rev 20049

Add xautolock
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 01 11:29:54 2017 +0200 (2017-09-01)
parents 429355d87af5
children 6135577f4d08
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="http://code.google.com/p/psutil/"
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 }