wok annotate paramiko/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 6fd9c83a476a
children ac8ca9758df1
rev   line source
pascal@4560 1 # SliTaz package receipt.
pascal@4560 2
pascal@4560 3 PACKAGE="paramiko"
Hans-G?nter@23277 4 VERSION="2.7.1"
pascal@4560 5 CATEGORY="development"
Hans-G?nter@21658 6 TAGS="ssh"
Hans-G?nter@21658 7 SHORT_DESC="Module for python that implements the SSH2 protocol."
pascal@4560 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15375 9 LICENSE="LGPL2.1"
Hans-G?nter@23277 10 WEB_SITE="https://www.paramiko.org/"
Hans-G?nter@21658 11
pascal@4560 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21658 13 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/$VERSION.tar.gz"
pascal@15375 14
Hans-G?nter@23277 15 DEPENDS="python-bcrypt python-cryptography python-pyasn1 python-pynacl"
Hans-G?nter@21658 16 BUILD_DEPENDS="python python-setuptools"
pascal@4560 17
pascal@24055 18 current_version()
pascal@24055 19 {
pascal@24055 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 21 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
pascal@24055 22 }
pascal@24055 23
pascal@4560 24 # Rules to configure and make the package.
pascal@4560 25 compile_rules()
pascal@4560 26 {
slaxemulator@11056 27 python setup.py install --root=$DESTDIR
pascal@4560 28 }
pascal@4560 29
pascal@4560 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@4560 31 genpkg_rules()
pascal@4560 32 {
Hans-G?nter@23277 33 cp -a $install/usr $fs
pascal@4560 34 }