wok-current view python-ethtool/receipt @ rev 25637
Add miss new packages (Py3Qt-x11-gpl and pycairo118)
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Mon Jan 15 22:12:34 2024 +0000 (11 months ago) |
parents | 5ea0ce1cecc0 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-ethtool"
4 VERSION="0.15"
5 CATEGORY="network"
6 SHORT_DESC="Python bindings for the ethtool kernel interface."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://pypi.org/project/ethtool/"
10 REPOLOGY="python:ethtool"
12 SOURCE="ethtool"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$SOURCE-$VERSION.tar.gz"
16 DEPENDS="libnl python"
17 BUILD_DEPENDS="libnl-dev pkg-config python python-dev python-setuptools"
19 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 python setup.py build &&
29 python setup.py install --root=$DESTDIR
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 cook_copy_folders bin
36 cook_copy_folders lib
37 }