wok-next annotate python-psutil/receipt @ rev 20885
Update python (2.7.15)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jul 13 13:52:56 2018 +0300 (2018-07-13) |
parents | c4e53a39395a |
children | 7506b35e1c6f |
rev | line source |
---|---|
paul@13599 | 1 # SliTaz package receipt. |
paul@13599 | 2 |
paul@13599 | 3 PACKAGE="python-psutil" |
paul@13599 | 4 VERSION="0.6.1" |
paul@13599 | 5 CATEGORY="development" |
paul@13599 | 6 SHORT_DESC="A process and system utilities module for Python." |
paul@13599 | 7 MAINTAINER="paul@slitaz.org" |
pascal@15379 | 8 LICENSE="BSD" |
al@20885 | 9 WEB_SITE="http://code.google.com/p/psutil/" |
al@20885 | 10 REPOLOGY="python:psutil" |
al@20885 | 11 |
paul@13599 | 12 SOURCE="psutil" |
paul@13599 | 13 TARBALL="$SOURCE-$VERSION.tar.gz" |
paul@13599 | 14 WGET_URL="http://psutil.googlecode.com/files/$TARBALL" |
pascal@15379 | 15 |
paul@13599 | 16 DEPENDS="python" |
al@20444 | 17 BUILD_DEPENDS="python-dev" |
paul@13599 | 18 |
paul@13599 | 19 # Rules to configure and make the package. |
paul@13599 | 20 compile_rules() |
paul@13599 | 21 { |
pankso@16505 | 22 # Cross compilation hack |
pankso@16505 | 23 case "$ARCH" in |
pankso@16505 | 24 arm*) |
pankso@16505 | 25 mv /usr/bin/i486-slitaz-linux-gcc /tmp && |
pankso@16505 | 26 ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \ |
pankso@16505 | 27 /usr/bin/i486-slitaz-linux-gcc ;; |
pankso@16505 | 28 esac && |
paul@13599 | 29 python setup.py install --root=$DESTDIR |
pankso@16505 | 30 case "$ARCH" in |
pankso@16505 | 31 arm*) |
pankso@16505 | 32 rm /usr/bin/i486-slitaz-linux-gcc && |
pankso@16505 | 33 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;; |
pankso@16505 | 34 esac |
paul@13599 | 35 } |
paul@13599 | 36 |
paul@13599 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@13599 | 38 genpkg_rules() |
paul@13599 | 39 { |
paul@13599 | 40 cp -a $install/usr $fs |
paul@13599 | 41 } |