wok-6.x view sshfp/receipt @ rev 24415
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 10 18:04:02 2022 +0000 (2022-02-10) |
parents | 5ea0ce1cecc0 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="sshfp"
4 VERSION="1.2.2"
5 CATEGORY="network"
6 SHORT_DESC="DNS SSHFP records generator."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/xelerance/sshfp"
11 WGET_URL="https://github.com/xelerance/sshfp/archive/$VERSION.tar.gz"
13 DEPENDS="python-dnspython"
14 BUILD_DEPENDS="wget"
16 current_version()
17 {
18 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
19 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 make &&
26 make DESTDIR=$DESTDIR install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr
33 cp -a $install/usr/bin $fs/usr
34 }