wok annotate readline/receipt @ rev 25473

created recipe for get-java8-jre
author Hans-G?nter Theisgen
date Wed Oct 12 10:36:11 2022 +0100 (20 months ago)
parents bf28cc07ebf1
children d79ed38ace18
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@24076 19 current_version()
pascal@24076 20 {
pascal@24076 21 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24079 22 sed "/$PACKAGE-[0-9]/!d;/tar/!d;/-[abr]/d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24076 23 }
pascal@24076 24
pankso@633 25 # Rules to configure and make the package.
pankso@633 26 compile_rules()
pankso@633 27 {
pascal@19134 28 case "$ARCH" in
pascal@19134 29 arm*) export bash_cv_wcwidth_broken=true ;;
pascal@19134 30 esac
Hans-G?nter@21385 31
Hans-G?nter@21385 32 # patch -Np1 -i $stuff/readline-6.3-upstream_fixes-3.patch
pascal@14253 33 sed -i '/(MV)/d' Makefile*
Hans-G?nter@21385 34
Hans-G?nter@25265 35 ./configure \
Hans-G?nter@25265 36 --disable-install-examples \
Hans-G?nter@25265 37 $CONFIGURE_ARGS &&
Hans-G?nter@25265 38 make &&
Hans-G?nter@25265 39 make install DESTDIR=$DESTDIR
pankso@633 40 }
pankso@633 41
pankso@633 42 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@633 43 genpkg_rules()
pankso@633 44 {
Hans-G?nter@25265 45 cook_copy_files *.so*
pankso@633 46 }