wok-current annotate python-psutil/receipt @ rev 24722

updated libcaca and libcaca-dev (0.99.beta19 -> 0.99.beta20)
author Hans-G?nter Theisgen
date Tue Mar 15 10:03:33 2022 +0100 (2022-03-15)
parents 1df6fa555414
children 88b11e08f73a
rev   line source
paul@13599 1 # SliTaz package receipt.
paul@13599 2
paul@13599 3 PACKAGE="python-psutil"
Hans-G?nter@23533 4 VERSION="5.7.0"
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"
pascal@24383 9 SOURCE="psutil"
Hans-G?nter@23533 10 WEB_SITE="https://pypi.org/project/$SOURCE/"
Hans-G?nter@23533 11
paul@13599 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23533 13 WGET_URL="https://files.pythonhosted.org/packages/source/p/$SOURCE/$TARBALL"
pascal@15379 14
paul@13599 15 DEPENDS="python"
Hans-G?nter@23533 16 BUILD_DEPENDS="python python-dev python-setuptools"
Hans-G?nter@23533 17
Hans-G?nter@23533 18 HOST_ARCH="i486 arm"
paul@13599 19
pascal@24383 20 # What is the latest version available today?
pascal@24288 21 current_version()
pascal@24288 22 {
pascal@24383 23 wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||;q"
pascal@24288 24 }
pascal@24288 25
paul@13599 26 # Rules to configure and make the package.
paul@13599 27 compile_rules()
paul@13599 28 {
pankso@16505 29 # Cross compilation hack
pankso@16505 30 case "$ARCH" in
pankso@16505 31 arm*)
pankso@16505 32 mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
pankso@16505 33 ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
pankso@16505 34 /usr/bin/i486-slitaz-linux-gcc ;;
pankso@16505 35 esac &&
Hans-G?nter@23533 36
paul@13599 37 python setup.py install --root=$DESTDIR
Hans-G?nter@23533 38
pankso@16505 39 case "$ARCH" in
pankso@16505 40 arm*)
pankso@16505 41 rm /usr/bin/i486-slitaz-linux-gcc &&
pankso@16505 42 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
pankso@16505 43 esac
paul@13599 44 }
paul@13599 45
paul@13599 46 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@13599 47 genpkg_rules()
paul@13599 48 {
Hans-G?nter@23533 49 cp -a $install/usr $fs
paul@13599 50 }