wok-next view readline/receipt @ rev 20674
Up putty (0.70)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 12 05:17:48 2018 +0300 (2018-05-12) |
parents | 9278a60d6895 |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="readline"
4 VERSION="7.0"
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"
10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/readline.html"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
15 BUILD_DEPENDS="ncurses-dev flex"
16 SPLIT="readline-dev"
18 compile_rules() {
19 case "$ARCH" in
20 arm*) export bash_cv_wcwidth_broken=true ;;
21 esac
23 sed -i '/MV.*old/d' Makefile.in
24 sed -i '/{OLDSUFF}/c:' support/shlib-install
26 ./configure \
27 --disable-static \
28 $CONFIGURE_ARGS &&
29 make SHLIB_LIBS="-lncursesw" &&
30 make SHLIB_LIBS="-lncurses" DESTDIR=$install install || return 1
32 mkdir -p $install/lib
33 for i in readline history; do
34 mv -v $install/usr/lib/lib$i.so.* $install/lib
35 ln -sf ../../lib/$(readlink $install/usr/lib/lib$i.so) \
36 $install/usr/lib/lib$i.so
37 done
39 find $install -type f -name '*.so*' -exec chmod 755 '{}' \;
40 rmdir --ignore-fail-on-non-empty $install/usr/bin/
42 # install the documentation
43 cook_pick_docs doc/*.pdf doc/*.html
44 }
46 genpkg_rules() {
47 case $PACKAGE in
48 readline)
49 copy @std
50 DEPENDS="ncurses"
51 TAGS="LFS"
52 ;;
53 *-dev) copy @dev;;
54 esac
55 }