wok-6.x annotate ed/receipt @ rev 24453

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 15 18:29:48 2022 +0000 (2022-02-15)
parents dbb0f0791cf9
children 47514fe128b6
rev   line source
pascal@16335 1 # SliTaz package receipt.
pascal@16335 2
pascal@16335 3 PACKAGE="ed"
Hans-G?nter@22674 4 VERSION="1.15"
pascal@16335 5 CATEGORY="development"
pascal@16335 6 SHORT_DESC="A line-oriented text editor."
pascal@16335 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@16335 8 LICENSE="GPL3"
pascal@22693 9 WEB_SITE="https://www.gnu.org/software/ed/"
Hans-G?nter@22674 10
pascal@22675 11 TARBALL="$PACKAGE-$VERSION.tar.lz"
pascal@16335 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
Hans-G?nter@22674 13
pankso@16478 14 HOST_ARCH="i486 arm"
pascal@16335 15
pascal@16335 16 DEPENDS=""
pascal@22675 17 BUILD_DEPENDS="lzip"
pascal@16335 18
pascal@24336 19 # What is the latest version available today?
pascal@24336 20 current_version()
pascal@24336 21 {
pascal@24336 22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24336 23 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24336 24 }
pascal@24336 25
pascal@16335 26 # Rules to configure and make the package.
pascal@16335 27 compile_rules()
pascal@16335 28 {
pankso@16478 29 ./configure --prefix=/usr &&
Hans-G?nter@22674 30 make CC=${HOST_SYSTEM}-gcc &&
Hans-G?nter@22674 31 make install
pascal@16335 32 }
pascal@16335 33
pascal@16335 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@16335 35 genpkg_rules()
pascal@16335 36 {
pascal@16335 37 mkdir $fs/usr
pascal@16335 38 cp -a $install/usr/bin $fs/usr
pascal@16335 39 }