wok view 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 |
line source
1 # SliTaz package receipt.
3 PACKAGE="libedit"
4 VERSION="3.1"
5 CATEGORY="misc"
6 TAGS="cli editor library"
7 SHORT_DESC="Berkeley-style licensed command line editor library."
8 MAINTAINER="domcox@slitaz.org"
9 LICENSE="BSD"
10 WEB_SITE="https://www.thrysoee.dk/editline/"
12 SOURCE="libedit-20191231"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="$WEB_SITE$TARBALL"
16 BUILD_DEPENDS="gettext ncurses-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE 2>/dev/null | \
22 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-[0-9]*-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 export LDFLAGS="$LDFLAGS -ltinfo"
30 ./configure \
31 --prefix=/usr \
32 --mandir=/usr/share/man \
33 --enable-widec \
34 $CONFIGURE_ARGS &&
35 make -j 1 &&
36 make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/lib
43 cp -a $install/usr/lib/*.so* $fs/usr/lib
44 }