wok-next diff python-ethtool/receipt @ rev 21724

busybox: update configs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 11:04:25 2020 +0000 (2020-09-01)
parents 9b3461bf373c
children
line diff
     1.1 --- a/python-ethtool/receipt	Fri Jul 13 13:52:56 2018 +0300
     1.2 +++ b/python-ethtool/receipt	Tue Sep 01 11:04:25 2020 +0000
     1.3 @@ -1,31 +1,25 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7 +ORIGIN="ethtool"
     1.8  PACKAGE="python-ethtool"
     1.9 -VERSION="0.8"
    1.10 +VERSION="0.14"
    1.11  CATEGORY="network"
    1.12 -SHORT_DESC="Python bindings for the ethtool kernel interface."
    1.13 +SHORT_DESC="Python module to interface with ethtool"
    1.14  MAINTAINER="pascal.bellard@slitaz.org"
    1.15  LICENSE="GPL2"
    1.16 -WEB_SITE="http://fedorapeople.org/cgit/dsommers/public_git/python-ethtool.git"
    1.17 +WEB_SITE="https://pypi.org/project/$ORIGIN/"
    1.18 +#HOST_ARCH
    1.19  REPOLOGY="python:ethtool"
    1.20  
    1.21 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.22 -WGET_URL="https://fedorahosted.org/releases/p/y/$PACKAGE/$TARBALL"
    1.23 +BUILD_DEPENDS="python-dev python3-dev libnl-dev"
    1.24 +SPLIT="${PACKAGE/python/python3}:3"
    1.25  
    1.26 -DEPENDS="python libnl1"
    1.27 -BUILD_DEPENDS="python-dev libnl1-dev"
    1.28 -
    1.29 -# Rules to configure and make the package.
    1.30 -compile_rules()
    1.31 -{
    1.32 -	python setup.py build &&
    1.33 -	python setup.py install --root=$DESTDIR
    1.34 +compile_rules() {
    1.35 +	pip$SET install --no-compile --root=$install $ORIGIN==$VERSION
    1.36  }
    1.37  
    1.38 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.39 -genpkg_rules()
    1.40 -{
    1.41 -	mkdir -p $fs
    1.42 -	cp -a $install/usr $fs
    1.43 +genpkg_rules() {
    1.44 +	copy @std
    1.45 +	py=${PACKAGE%%-*} # python/python3
    1.46 +	DEPENDS="$py libnl"
    1.47  }
    1.48 -