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

Fix typo in last commit
author Christophe Lincoln <pankso@slitaz.org>
date Sun May 13 04:51:07 2012 +0200 (2012-05-13)
parents 4478a745a1e5
children e2b4ebabd30f
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 DEPENDS="ncurses-common"
15 BUILD_DEPENDS="gcc"
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 tazpkg get-install ncursesw-extra
28 fi
29 cd $src
30 sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \
31 include/Makefile.in
32 ./configure \
33 --libdir=/lib \
34 --sysconfdir=/etc \
35 --with-shared \
36 --without-debug \
37 --without-ada \
38 --enable-widec \
39 --with-build-cc="gcc -D_GNU_SOURCE" \
40 $CONFIGURE_ARGS &&
41 make && make install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/lib $fs/usr/bin
49 # Libs.
50 cp -a $install/lib/libncursesw.so* $fs/lib
52 # Base progs.
53 cp $install/usr/bin/clear $fs/usr/bin
54 cp $install/usr/bin/tset $fs/usr/bin
55 cp $install/usr/bin/reset $fs/usr/bin
56 }
58 # Overlap busybox
59 pre_install()
60 {
61 rm -f $root/usr/bin/clear
62 rm -f $root/usr/bin/reset
63 }
65 post_remove()
66 {
67 ln -s /bin/busybox $root/usr/bin/clear
68 ln -s /bin/busybox $root/usr/bin/reset
69 }