wok view ncursesw/receipt @ rev 14229

nspr-dev: tiny edit
author Dominique Corbex <domcox@slitaz.org>
date Fri Mar 22 07:32:45 2013 +0100 (2013-03-22)
parents e2b4ebabd30f
children c971db4d1bba
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 case "$ARCH" in
18 arm) BUILD_DEPENDS="" ;;
19 esac
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 # Ncurses need an installed /usr/bin/tic witch is in ncursesw-extra. And
25 # when cross compiling we can't use the freshly cooked binary. See cook log:
26 #
27 #** Building terminfo database, please wait...
28 #Running /usr/bin/tic to install /home/slitaz/wok/ncurses/install/usr/share/terminfo
29 #
30 if [ ! -d "/var/lib/tazpkg/installed/ncursesw-extra" ]; then
31 echo "Installing: ncursesw-extra"
32 tazpkg get-install ncursesw-extra 2>/dev/null 1>/dev/null
33 fi
34 cd $src
35 sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \
36 include/Makefile.in
37 ./configure \
38 --libdir=/lib \
39 --sysconfdir=/etc \
40 --with-shared \
41 --without-debug \
42 --without-ada \
43 --enable-widec \
44 --with-build-cc="gcc -D_GNU_SOURCE" \
45 $CONFIGURE_ARGS &&
46 make && make install
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/lib $fs/usr/bin
54 # Libs.
55 cp -a $install/lib/libncursesw.so* $fs/lib
57 # Base progs.
58 cp $install/usr/bin/clear $fs/usr/bin
59 cp $install/usr/bin/tset $fs/usr/bin
60 cp $install/usr/bin/reset $fs/usr/bin
61 }
63 # Overlap busybox
64 pre_install()
65 {
66 rm -f $root/usr/bin/clear
67 rm -f $root/usr/bin/reset
68 }
70 post_remove()
71 {
72 ln -s /bin/busybox $root/usr/bin/clear
73 ln -s /bin/busybox $root/usr/bin/reset
74 }