wok view sshfp/receipt @ rev 24072
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 07 17:56:16 2021 +0000 (2021-07-07) |
parents | 20661c276bcf |
children | ac8ca9758df1 |
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*}/releases 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 }