wok view readline/receipt @ rev 25691

Up lynis (3.1.1), ncurses-examples (20211021)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 16 10:43:04 2024 +0000 (4 weeks ago)
parents 8e26e36b2c5f
children
line source
1 # SliTaz package receipt.
3 PACKAGE="readline"
4 VERSION="8.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="GNU readline."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnu.org/software/readline/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS=""
15 BUILD_DEPENDS="ncursesw-dev"
17 HOST_ARCH="i486 arm"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://ftp.gnu.org/gnu/$PACKAGE/ 2>/dev/null | \
23 sed "/$PACKAGE-[0-9]/!d;/tar/!d;/-[abr]/d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 case "$ARCH" in
30 arm*) export bash_cv_wcwidth_broken=true ;;
31 esac
33 # patch -Np1 -i $stuff/readline-6.3-upstream_fixes-3.patch
34 sed -i '/(MV)/d' Makefile*
36 ./configure \
37 --disable-install-examples \
38 $CONFIGURE_ARGS &&
39 make &&
40 make install DESTDIR=$DESTDIR
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 cook_copy_files *.so*
47 }