wok-next view readline/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents 90a5eb560fd6
children d457c4e37c1b
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="devel@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="$PACKAGE-dev"
18 compile_rules() {
19 sed -i '/MV.*old/d' Makefile.in
20 sed -i '/{OLDSUFF}/c:' support/shlib-install
22 ./configure \
23 --disable-static \
24 $CONFIGURE_ARGS &&
25 make SHLIB_LIBS="-lncursesw" &&
26 make SHLIB_LIBS="-lncurses" DESTDIR=$install install || return 1
28 mkdir -p $install/lib
29 for i in readline history; do
30 mv -v $install/usr/lib/lib$i.so.* $install/lib
31 ln -sf ../../lib/$(readlink $install/usr/lib/lib$i.so) \
32 $install/usr/lib/lib$i.so
33 done
35 find $install -type f -name '*.so*' -exec chmod 755 '{}' \;
36 rmdir --ignore-fail-on-non-empty $install/usr/bin/
38 # install the documentation
39 cook_pick_docs doc/*.pdf doc/*.html
40 }
42 genpkg_rules() {
43 case $PACKAGE in
44 readline)
45 copy @std
46 DEPENDS="ncurses"
47 TAGS="LFS"
48 ;;
49 *-dev) copy @dev;;
50 esac
51 }