wok-next view readline/receipt @ rev 19751
Up perl-xml-parser: we have perl-dev now...
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Jun 08 15:34:29 2017 +0300 (2017-06-08) |
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 }