wok-6.x annotate rcs/receipt @ rev 24336

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 28 18:19:21 2022 +0000 (2022-01-28)
parents 79ce2c7c3b95
children ee19effe61eb
rev   line source
pascal@2084 1 # SliTaz package receipt.
pascal@2084 2
pascal@2084 3 PACKAGE="rcs"
Hans-G?nter@21833 4 VERSION="5.9.4"
pascal@2084 5 CATEGORY="development"
Hans-G?nter@21833 6 TAGS="cvs version-control versioning"
pascal@2084 7 SHORT_DESC="GNU Revision Control System."
pascal@2084 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15590 9 LICENSE="GPL2"
Hans-G?nter@21833 10 WEB_SITE="https://www.gnu.org/software/rcs/"
Hans-G?nter@21833 11
Hans-G?nter@21833 12 TARBALL="$PACKAGE-$VERSION.tar.xz"
pascal@2084 13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
pascal@2084 14
pascal@15590 15 DEPENDS="diffutils"
Hans-G?nter@21833 16 BUILD_DEPENDS="diffutils ed"
pascal@15590 17
pascal@24336 18 # What is the latest version available today?
pascal@24336 19 current_version()
pascal@24336 20 {
pascal@24336 21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24336 22 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24336 23 }
pascal@24336 24
pascal@2084 25 # Rules to configure and make the package.
pascal@2084 26 compile_rules()
pascal@2084 27 {
pascal@4983 28 # remove busybox/diff
pascal@5794 29 [ -L /usr/bin/diff ] && tazpkg get-install diffutils --forced
Hans-G?nter@21833 30 # sed -i 's,test -w a.d || cp /dev/null a.d 2>/dev/null,false,' \
Hans-G?nter@21833 31 # src/conf.sh
pascal@2084 32 ./configure --prefix=/usr $CONFIGURE_ARGS &&
pascal@2084 33 make
pascal@2084 34 }
pascal@2084 35
pascal@2084 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2084 37 genpkg_rules()
pascal@2084 38 {
pascal@2084 39 mkdir -p $fs/usr/bin
Hans-G?nter@21833 40 for p in ci co ident merge rcs rcsclean rcsdiff rcsmerge rlog
Hans-G?nter@21833 41 do
pascal@2084 42 install -c $src/src/$p $fs/usr/bin
Hans-G?nter@21833 43 done
pascal@2084 44 }