wok-next view readline/receipt @ rev 19815

libusb-compat-dev: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 23 13:55:19 2017 +0200 (2017-07-23)
parents 1a86cb99cbbf
children 90a5eb560fd6
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="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html"
10 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
15 BUILD_DEPENDS="ncurses-dev flex"
16 SPLIT="readline-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 case "$ARCH" in
22 arm*) export bash_cv_wcwidth_broken=true ;;
23 esac
25 sed -i '/MV.*old/d' Makefile.in
26 sed -i '/{OLDSUFF}/c:' support/shlib-install
28 ./configure \
29 --disable-static \
30 --libdir=/lib \
31 --docdir=/usr/share/doc/readline-$VERSION \
32 $CONFIGURE_ARGS &&
33 make SHLIB_LIBS=-lncurses &&
34 make DESTDIR=$install install
36 # *.so.* -> /lib
37 # *.so -> /usr/lib
38 mkdir -p $install/usr/lib
39 ln -sfv ../../lib/$(readlink $install/lib/libreadline.so) \
40 $install/usr/lib/libreadline.so
41 ln -sfv ../../lib/$(readlink $install/lib/libhistory.so ) \
42 $install/usr/lib/libhistory.so
43 rm $install/lib/*.so
45 # install the documentation
46 cp doc/*.pdf doc/*.html $install/usr/share/doc/readline-7.0
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 case $PACKAGE in
53 readline) copy @std; DEPENDS="ncurses";;
54 *-dev) copy @dev;;
55 esac
56 }