wok annotate nms/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 9820f9ae38d5
children ecc0d362278b
rev   line source
paul@19551 1 # SliTaz package receipt.
paul@19551 2
paul@19551 3 PACKAGE="nms"
pascal@21242 4 VERSION="0.3.3"
paul@19551 5 CATEGORY="utilities"
paul@19551 6 SHORT_DESC="Decrypting effects for text."
paul@19551 7 MAINTAINER="paul@slitaz.org"
paul@19551 8 LICENSE="GPL3"
pascal@21242 9 TARBALL="no-more-secrets-$VERSION.tar.gz"
paul@19551 10 WEB_SITE="https://github.com/bartobri/no-more-secrets"
pascal@21242 11 WGET_URL="$WEB_SITE/archive/v$VERSION/$TARBALL"
pascal@21242 12 PROVIDE="no-more-secrets"
paul@19551 13
paul@19551 14 DEPENDS="ncurses"
pascal@21242 15 BUILD_DEPENDS="ncurses-dev"
paul@19551 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
paul@19551 23 # Rules to configure and make the package.
paul@19551 24 compile_rules()
paul@19551 25 {
pascal@21242 26 make &&
paul@19551 27 make prefix=/usr DESTDIR=$DESTDIR install
paul@19551 28 }
paul@19551 29
paul@19551 30 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@19551 31 genpkg_rules()
paul@19551 32 {
paul@19551 33 mkdir -p $fs/usr
paul@19551 34 cp -a $install/usr/bin $fs/usr
paul@19551 35 }