wok-6.x view memo/receipt @ rev 24459

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 16 11:53:30 2022 +0000 (2022-02-16)
parents b569b85b0fb9
children 77ec99338524
line source
1 # SliTaz package receipt.
3 PACKAGE="memo"
4 VERSION="1.0"
5 CATEGORY="office"
6 SHORT_DESC="Memo is a command line, Unix-style note-taking software."
7 MAINTAINER="paul@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 LICENSE="GPL3"
10 WEB_SITE="https://github.com/mrVanDalo/memo"
11 WGET_URL="http://www.ideabyte.net/memo/$TARBALL"
13 DEPENDS="ncurses"
14 BUILD_DEPENDS="ncurses-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://github.com/anttiviljami/memo/tags 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 make
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/bin
33 cp -a $src/$PACKAGE $fs/usr/bin
34 }