wok-current annotate python-ethtool/receipt @ rev 24055
Add current_version for most github hosted softwares
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 08 08:46:05 2021 +0000 (2021-06-08) |
parents | 3601009ad7bd |
children | d56de587d8e8 |
rev | line source |
---|---|
pascal@14713 | 1 # SliTaz package receipt. |
pascal@14713 | 2 |
pascal@14713 | 3 PACKAGE="python-ethtool" |
Hans-G?nter@23481 | 4 VERSION="0.14" |
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@23481 | 9 WEB_SITE="https://fedoraproject.org/wiki/Python-ethtool" |
pascal@14713 | 10 |
Hans-G?nter@23481 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@23481 | 12 WGET_URL="https://github.com/fedora-python/$PACKAGE/archive/v$VERSION.tar.gz" |
Hans-G?nter@23481 | 13 |
Hans-G?nter@23481 | 14 DEPENDS="python libnl" |
Hans-G?nter@23481 | 15 BUILD_DEPENDS="libnl-dev pkg-config python python-dev python-setuptools" |
pascal@14713 | 16 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
pascal@14713 | 23 # Rules to configure and make the package. |
pascal@14713 | 24 compile_rules() |
pascal@14713 | 25 { |
pascal@14713 | 26 python setup.py build && |
pascal@14713 | 27 python setup.py install --root=$DESTDIR |
pascal@14713 | 28 } |
pascal@14713 | 29 |
pascal@14713 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@14713 | 31 genpkg_rules() |
pascal@14713 | 32 { |
Hans-G?nter@23481 | 33 cp -a $install/usr $fs |
pascal@14713 | 34 } |