wok-6.x view ncursesw/receipt @ rev 12773

ncurses*: add to arm pakages (now will try to link ncruses apps again it :-)
author Christophe Lincoln <pankso@slitaz.org>
date Sun May 13 04:31:48 2012 +0200 (2012-05-13)
parents 3b8379165c1b
children 4478a745a1e5
line source
1 # SliTaz package receipt.
3 PACKAGE="ncursesw"
4 VERSION="5.9"
5 SOURCE="ncurses"
6 CATEGORY="base-system"
7 SHORT_DESC="Library of functions to manage display on terminals."
8 MAINTAINER="pankso@slitaz.org"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
10 WEB_SITE="http://invisible-island.net/ncurses/"
11 WGET_URL="ftp://invisible-island.net/ncurses/$TARBALL"
12 HOST_ARCH="i486 arm"
14 # Ncursesw need an installed /usr/bin/tic witch is in ncursesw-extra. And
15 # when cross compiling we can't use the freshly cooked binary. See cook log:
16 #
17 #** Building terminfo database, please wait...
18 #Running /usr/bin/tic to install /home/slitaz/wok/ncurses/install/usr/share/terminfo
19 #
20 DEPENDS="ncurses-common"
21 BUILD_DEPENDS="gcc ncursesw-extra"
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \
28 include/Makefile.in
29 ./configure \
30 --libdir=/lib \
31 --sysconfdir=/etc \
32 --with-shared \
33 --without-debug \
34 --without-ada \
35 --enable-widec \
36 --with-build-cc="gcc -D_GNU_SOURCE" \
37 $CONFIGURE_ARGS &&
38 make && make install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/lib $fs/usr/bin
46 # Libs.
47 cp -a $install/lib/libncursesw.so* $fs/lib
49 # Base progs.
50 cp $install/usr/bin/clear $fs/usr/bin
51 cp $install/usr/bin/tset $fs/usr/bin
52 cp $install/usr/bin/reset $fs/usr/bin
53 }
55 # Overlap busybox
56 pre_install()
57 {
58 rm -f $root/usr/bin/clear
59 rm -f $root/usr/bin/reset
60 }
62 post_remove()
63 {
64 ln -s /bin/busybox $root/usr/bin/clear
65 ln -s /bin/busybox $root/usr/bin/reset
66 }