wok annotate kilo/receipt @ rev 24491

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 18 22:59:06 2022 +0000 (2022-02-18)
parents 5cc3d87b40f9
children ecd613707114
rev   line source
paul@19332 1 # SliTaz package receipt.
paul@19332 2
paul@19332 3 PACKAGE="kilo"
paul@19332 4 VERSION="15072016"
paul@19332 5 CATEGORY="office"
paul@19332 6 SHORT_DESC="A text editor in less than 1000 LOC with syntax highlight and search."
paul@19332 7 MAINTAINER="paul@slitaz.org"
paul@19332 8 LICENSE="BSD"
paul@19332 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
paul@19332 10 WEB_SITE="https://github.com/antirez/kilo"
paul@19332 11 WGET_URL="git|git://github.com/antirez/kilo"
paul@19332 12
paul@19332 13 #DEPENDS=""
paul@19332 14 BUILD_DEPENDS="git bzip2"
paul@19332 15
pascal@24491 16 # What is the latest version available today?
pascal@24491 17 current_version()
pascal@24491 18 {
pascal@24491 19 wget -O - https://github.com/antirez/kilo/commits/master 2>/dev/null | \
pascal@24491 20 sed '/commits_list_item/!d;s|.*commits/\(.......\).*|\1|;q'
pascal@24491 21 }
pascal@24491 22
paul@19332 23 # Rules to configure and make the package.
paul@19332 24 compile_rules()
paul@19332 25 {
paul@19332 26 make
paul@19332 27 }
paul@19332 28
paul@19332 29 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@19332 30 genpkg_rules()
paul@19332 31 {
paul@19332 32 mkdir -p $fs/usr/bin
paul@19332 33 cp -a $src/$PACKAGE $fs/usr/bin
paul@19332 34 }
paul@19332 35