wok annotate python-ethtool/receipt @ rev 25466

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 01 09:32:27 2022 +0000 (20 months ago)
parents 5ea0ce1cecc0
children 0262035dc1e7
rev   line source
pascal@14713 1 # SliTaz package receipt.
pascal@14713 2
pascal@14713 3 PACKAGE="python-ethtool"
Hans-G?nter@25173 4 VERSION="0.15"
pascal@14713 5 CATEGORY="network"
pascal@14713 6 SHORT_DESC="Python bindings for the ethtool kernel interface."
pascal@14713 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14714 8 LICENSE="GPL2"
Hans-G?nter@25173 9 WEB_SITE="https://pypi.org/project/ethtool/"
Hans-G?nter@25173 10 REPOLOGY="python:ethtool"
pascal@14713 11
Hans-G?nter@25173 12 SOURCE="ethtool"
Hans-G?nter@23481 13 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@25173 14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$SOURCE-$VERSION.tar.gz"
Hans-G?nter@23481 15
Hans-G?nter@25173 16 DEPENDS="libnl python"
Hans-G?nter@23481 17 BUILD_DEPENDS="libnl-dev pkg-config python python-dev python-setuptools"
pascal@14713 18
pascal@24055 19 current_version()
pascal@24055 20 {
pascal@24055 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 22 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 23 }
pascal@24055 24
pascal@14713 25 # Rules to configure and make the package.
pascal@14713 26 compile_rules()
pascal@14713 27 {
pascal@14713 28 python setup.py build &&
pascal@14713 29 python setup.py install --root=$DESTDIR
pascal@14713 30 }
pascal@14713 31
pascal@14713 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@14713 33 genpkg_rules()
pascal@14713 34 {
Hans-G?nter@25173 35 cook_copy_folders bin
Hans-G?nter@25173 36 cook_copy_folders lib
pascal@14713 37 }