wok-current annotate libedit/receipt @ rev 24436

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 13 13:09:42 2022 +0000 (2022-02-13)
parents e888209936f1
children 4cfb1fddd0ad
rev   line source
domcox@1356 1 # SliTaz package receipt.
domcox@1356 2
domcox@1356 3 PACKAGE="libedit"
Hans-G?nter@21172 4 VERSION="3.1"
pascal@1423 5 CATEGORY="misc"
Hans-G?nter@21172 6 TAGS="cli editor library"
Hans-G?nter@21172 7 SHORT_DESC="Berkeley-style licensed command line editor library."
pascal@13025 8 MAINTAINER="domcox@slitaz.org"
pascal@15472 9 LICENSE="BSD"
Hans-G?nter@21172 10 WEB_SITE="https://www.thrysoee.dk/editline/"
Hans-G?nter@21172 11
Hans-G?nter@23023 12 SOURCE="libedit-20191231"
domcox@1356 13 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@21172 14 WGET_URL="$WEB_SITE$TARBALL"
domcox@1356 15
Hans-G?nter@21172 16 BUILD_DEPENDS="gettext ncurses-dev"
pascal@15613 17
pascal@24436 18 # What is the latest version available today?
pascal@24436 19 current_version()
pascal@24436 20 {
pascal@24436 21 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24436 22 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-[0-9]*-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24436 23 }
pascal@24436 24
domcox@1356 25 # Rules to configure and make the package.
domcox@1356 26 compile_rules()
domcox@1356 27 {
pascal@17727 28 export LDFLAGS="$LDFLAGS -ltinfo"
Hans-G?nter@23023 29
Hans-G?nter@21172 30 ./configure \
Hans-G?nter@21172 31 --prefix=/usr \
Hans-G?nter@21172 32 --mandir=/usr/share/man \
Hans-G?nter@21172 33 --enable-widec \
Hans-G?nter@21172 34 $CONFIGURE_ARGS &&
Hans-G?nter@21172 35 make -j 1 &&
pascal@15472 36 make DESTDIR=$DESTDIR install
domcox@1356 37 }
domcox@1356 38
domcox@1356 39 # Rules to gen a SliTaz package suitable for Tazpkg.
domcox@1356 40 genpkg_rules()
domcox@1356 41 {
domcox@1356 42 mkdir -p $fs/usr/lib
Hans-G?nter@23023 43 cp -a $install/usr/lib/*.so* $fs/usr/lib
domcox@1356 44 }