wok annotate iotop/receipt @ rev 24427

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 12 11:42:56 2022 +0000 (2022-02-12)
parents 5e6810e4a860
children
rev   line source
pascal@17074 1 # SliTaz package receipt.
pascal@17074 2
pascal@17074 3 PACKAGE="iotop"
pascal@17074 4 VERSION="0.6"
pascal@17074 5 CATEGORY="system-tools"
pascal@17074 6 SHORT_DESC="Show of behalf of which process is the I/O going on."
pascal@17074 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@19678 8 LICENSE="GPL2"
pascal@17074 9 WEB_SITE="http://guichaz.free.fr/iotop"
pascal@17074 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@18077 11 WGET_URL="$WEB_SITE/files/$TARBALL"
pascal@17074 12
pascal@17074 13 DEPENDS="python"
pascal@17074 14 BUILD_DEPENDS="python"
pascal@17074 15
pascal@24427 16 # What is the latest version available today?
pascal@24427 17 current_version()
pascal@24427 18 {
pascal@24427 19 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24427 20 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24427 21 }
pascal@24427 22
pascal@17074 23 # Rules to configure and make the package.
pascal@17074 24 compile_rules()
pascal@17074 25 {
pascal@17074 26 python setup.py build
pascal@17074 27 python setup.py install --root=$DESTDIR
pascal@17074 28 }
pascal@17074 29
pascal@17074 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17074 31 genpkg_rules()
pascal@17074 32 {
pascal@17074 33 mkdir -p $fs/usr
al@18077 34 cp -a $install/usr/sbin $fs/usr
al@18077 35 cp -a $install/usr/lib $fs/usr
pascal@17074 36 }