wok view ncurses/receipt @ rev 18730

Quote root dir in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 20 15:13:45 2015 +0100 (2015-12-20)
parents cdf802803d26
children 1feee7ca564d
line source
1 # SliTaz package receipt.
3 PACKAGE="ncurses"
4 VERSION="5.9"
5 CATEGORY="base-system"
6 SHORT_DESC="Library of functions to manage display on terminals."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 LICENSE="MIT"
10 WEB_SITE="http://invisible-island.net/ncurses/"
11 WGET_URL="ftp://invisible-island.net/ncurses/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="ncurses-common libtinfo libtic"
15 BUILD_DEPENDS=""
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 # Ncurses need an installed /usr/bin/tic witch is in ncursesw-extra. And
21 # when cross compiling we can't use the freshly cooked binary. See cook log:
22 #
23 #** Building terminfo database, please wait...
24 #Running /usr/bin/tic to install /home/slitaz/wok/ncurses/install/usr/share/terminfo
25 #
26 if [ ! -d "/var/lib/tazpkg/installed/ncursesw-extra" ]; then
27 echo "Installing: ncursesw-extra"
28 tazpkg get-install ncursesw-extra 2>/dev/null 1>/dev/null
29 fi
30 cd $src
31 mkdir -p $DESTDIR/usr/lib/terminfo
32 sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \
33 include/Makefile.in
34 ./configure \
35 --libdir=/lib \
36 --sysconfdir=/etc \
37 --with-shared \
38 --without-debug \
39 --without-ada \
40 --with-build-cc="gcc -D_GNU_SOURCE" \
41 --with-termlib \
42 --with-ticlib \
43 $CONFIGURE_ARGS &&
44 make && make install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/lib
51 cp -a $install/lib/libncurses.so* $fs/lib
52 }