wok annotate keychain/receipt @ rev 24403

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 08 18:20:23 2022 +0000 (2022-02-08)
parents 1f0773e2f6fe
children 20ad21d5532c
rev   line source
pascal@10907 1 # SliTaz package receipt.
pascal@10907 2
pascal@10907 3 PACKAGE="keychain"
Hans-G?nter@21091 4 VERSION="2.8.5"
pascal@10907 5 CATEGORY="network"
Hans-G?nter@21091 6 TAGS="ssh"
Hans-G?nter@21091 7 SHORT_DESC="SSH and GPG keys managment tools."
pascal@10907 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15601 9 LICENSE="GPL2"
pascal@20672 10 WEB_SITE="https://www.funtoo.org/Keychain"
Hans-G?nter@21091 11
Hans-G?nter@21091 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21091 13 WGET_URL="https://github.com/funtoo/$PACKAGE/archive/$VERSION.tar.gz"
Hans-G?nter@21091 14
Hans-G?nter@21091 15 SUGGESTED="gnupg openssh"
pascal@10907 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|.*/\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
pascal@10907 23 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@10907 24 genpkg_rules()
pascal@10907 25 {
pascal@10907 26 mkdir -p $fs/usr/bin
pascal@10907 27 cp -a $src/keychain $fs/usr/bin
pascal@10907 28 }