wok view libedit/receipt @ rev 25457

Normazile https://sourceforge.net/projects web_sites
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 23 08:28:09 2022 +0000 (2022-09-23)
parents 2a0479881723
children
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-20210910"
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 &&
36 make install DESTDIR=$DESTDIR
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 cook_copy_files *.so*
43 }