wok-next view python-psutil/receipt @ rev 20636
Fix "can't execute '/usr/bin/update-mime-database': No such file or directory"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 27 15:12:17 2018 +0300 (2018-04-27) |
parents | 6c73b944e8dd |
children | 9b3461bf373c |
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"
14 DEPENDS="python"
15 BUILD_DEPENDS="python-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 # Cross compilation hack
21 case "$ARCH" in
22 arm*)
23 mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
24 ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
25 /usr/bin/i486-slitaz-linux-gcc ;;
26 esac &&
27 python setup.py install --root=$DESTDIR
28 case "$ARCH" in
29 arm*)
30 rm /usr/bin/i486-slitaz-linux-gcc &&
31 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
32 esac
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 cp -a $install/usr $fs
39 }