wok-4.x view ncursesw/receipt @ rev 11765

up mtr (0.82) and added description
author Samuel Trassare <samuel_trassare@yahoo.com>
date Wed Feb 22 17:33:57 2012 -0800 (2012-02-22)
parents ef827f291143
children 39f7962e4210
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"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \
18 include/Makefile.in
19 ./configure \
20 --libdir=/lib \
21 --sysconfdir=/etc \
22 --with-shared \
23 --without-debug \
24 --without-ada \
25 --enable-widec \
26 --build=$HOST_SYSTEM \
27 --host=$HOST_SYSTEM &&
28 make && make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/lib $fs/usr/bin
36 # Libs.
37 cp -a $_pkg/lib/libncursesw.so* $fs/lib
39 # Base progs.
40 cp $_pkg/usr/bin/clear $fs/usr/bin
41 cp $_pkg/usr/bin/tset $fs/usr/bin
42 cp $_pkg/usr/bin/reset $fs/usr/bin
43 }
45 # Overlap busybox
46 pre_install()
47 {
48 rm -f $1/usr/bin/clear
49 rm -f $1/usr/bin/reset
50 }
52 post_remove()
53 {
54 ln -s /bin/busybox $1/usr/bin/clear
55 ln -s /bin/busybox $1/usr/bin/reset
56 }