wok-6.x view python-psutil/receipt @ rev 16509

mpg123: up to (1.19.0) with better ARM support
author Christophe Lincoln <pankso@slitaz.org>
date Thu Apr 24 18:16:37 2014 +0200 (2014-04-24)
parents 2a5cc8208d36
children 7390f8de9846
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 }