wok-next diff readline/receipt @ rev 20996

Move fonts-liberation*
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Oct 04 16:01:47 2018 +0300 (2018-10-04)
parents 9278a60d6895
children d5aab818505e
line diff
     1.1 --- a/readline/receipt	Mon Jun 05 16:48:55 2017 +0300
     1.2 +++ b/readline/receipt	Thu Oct 04 16:01:47 2018 +0300
     1.3 @@ -6,8 +6,8 @@
     1.4  SHORT_DESC="GNU readline"
     1.5  MAINTAINER="pankso@slitaz.org"
     1.6  LICENSE="GPL3"
     1.7 -WEB_SITE="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html"
     1.8 -HOST_ARCH="i486 arm"
     1.9 +WEB_SITE="https://www.gnu.org/software/readline"
    1.10 +LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/readline.html"
    1.11  
    1.12  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.13  WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
    1.14 @@ -15,9 +15,7 @@
    1.15  BUILD_DEPENDS="ncurses-dev flex"
    1.16  SPLIT="readline-dev"
    1.17  
    1.18 -# Rules to configure and make the package.
    1.19 -compile_rules()
    1.20 -{
    1.21 +compile_rules() {
    1.22  	case "$ARCH" in
    1.23  		arm*) export bash_cv_wcwidth_broken=true ;;
    1.24  	esac
    1.25 @@ -27,30 +25,31 @@
    1.26  
    1.27  	./configure \
    1.28  		--disable-static \
    1.29 -		--libdir=/lib \
    1.30 -		--docdir=/usr/share/doc/readline-$VERSION \
    1.31  		$CONFIGURE_ARGS &&
    1.32 -	make SHLIB_LIBS=-lncurses &&
    1.33 -	make DESTDIR=$install install
    1.34 +	make SHLIB_LIBS="-lncursesw" &&
    1.35 +	make SHLIB_LIBS="-lncurses" DESTDIR=$install install || return 1
    1.36  
    1.37 -	# *.so.* -> /lib
    1.38 -	# *.so   -> /usr/lib
    1.39 -	mkdir -p $install/usr/lib
    1.40 -	ln -sfv ../../lib/$(readlink $install/lib/libreadline.so) \
    1.41 -		$install/usr/lib/libreadline.so
    1.42 -	ln -sfv ../../lib/$(readlink $install/lib/libhistory.so ) \
    1.43 -		$install/usr/lib/libhistory.so
    1.44 -	rm $install/lib/*.so
    1.45 +	mkdir -p $install/lib
    1.46 +	for i in readline history; do
    1.47 +		mv -v $install/usr/lib/lib$i.so.* $install/lib
    1.48 +		ln -sf ../../lib/$(readlink $install/usr/lib/lib$i.so) \
    1.49 +			$install/usr/lib/lib$i.so
    1.50 +	done
    1.51 +
    1.52 +	find $install -type f -name '*.so*' -exec chmod 755 '{}' \;
    1.53 +	rmdir --ignore-fail-on-non-empty $install/usr/bin/
    1.54  
    1.55  	# install the documentation
    1.56 -	cp doc/*.pdf doc/*.html $install/usr/share/doc/readline-7.0
    1.57 +	cook_pick_docs doc/*.pdf doc/*.html
    1.58  }
    1.59  
    1.60 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.61 -genpkg_rules()
    1.62 -{
    1.63 +genpkg_rules() {
    1.64  	case $PACKAGE in
    1.65 -		readline) copy @std; DEPENDS="ncurses";;
    1.66 +		readline)
    1.67 +			copy @std
    1.68 +			DEPENDS="ncurses"
    1.69 +			TAGS="LFS"
    1.70 +			;;
    1.71  		*-dev) copy @dev;;
    1.72  	esac
    1.73  }