wok annotate 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 (8 weeks ago)
parents 8e26e36b2c5f
children
rev   line source
pankso@633 1 # SliTaz package receipt.
pankso@633 2
pankso@633 3 PACKAGE="readline"
Hans-G?nter@25265 4 VERSION="8.1"
pankso@633 5 CATEGORY="system-tools"
pankso@633 6 SHORT_DESC="GNU readline."
pankso@633 7 MAINTAINER="pankso@slitaz.org"
pascal@14999 8 LICENSE="GPL3"
Hans-G?nter@21385 9 WEB_SITE="https://www.gnu.org/software/readline/"
Hans-G?nter@21385 10
pankso@633 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@1468 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
pankso@633 13
pascal@14252 14 DEPENDS=""
pankso@12810 15 BUILD_DEPENDS="ncursesw-dev"
slaxemulator@10336 16
Hans-G?nter@21385 17 HOST_ARCH="i486 arm"
Hans-G?nter@21385 18
pascal@25609 19 # What is the latest version available today?
pascal@24076 20 current_version()
pascal@24076 21 {
pascal@25609 22 wget -O - https://ftp.gnu.org/gnu/$PACKAGE/ 2>/dev/null | \
pascal@24079 23 sed "/$PACKAGE-[0-9]/!d;/tar/!d;/-[abr]/d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24076 24 }
pascal@24076 25
pankso@633 26 # Rules to configure and make the package.
pankso@633 27 compile_rules()
pankso@633 28 {
pascal@19134 29 case "$ARCH" in
pascal@19134 30 arm*) export bash_cv_wcwidth_broken=true ;;
pascal@19134 31 esac
Hans-G?nter@21385 32
Hans-G?nter@21385 33 # patch -Np1 -i $stuff/readline-6.3-upstream_fixes-3.patch
pascal@14253 34 sed -i '/(MV)/d' Makefile*
Hans-G?nter@21385 35
Hans-G?nter@25265 36 ./configure \
Hans-G?nter@25265 37 --disable-install-examples \
Hans-G?nter@25265 38 $CONFIGURE_ARGS &&
Hans-G?nter@25265 39 make &&
Hans-G?nter@25265 40 make install DESTDIR=$DESTDIR
pankso@633 41 }
pankso@633 42
pankso@633 43 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@633 44 genpkg_rules()
pankso@633 45 {
Hans-G?nter@25265 46 cook_copy_files *.so*
pankso@633 47 }