wok-current view ncursesw/receipt @ rev 9580

Up: json-glib to 0.12.4.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Apr 12 11:42:31 2011 +0000 (2011-04-12)
parents 129bb5b11a7e
children ef827f291143
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 --prefix=/usr \
21 --libdir=/lib \
22 --sysconfdir=/etc \
23 --infodir=/usr/share/info \
24 --mandir=/usr/share/man \
25 --with-shared \
26 --without-debug \
27 --without-ada \
28 --enable-widec \
29 $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$PWD/_pkg install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/lib $fs/usr/bin
39 # Libs.
40 cp -a $_pkg/lib/libncursesw.so* $fs/lib
42 # Base progs.
43 cp $_pkg/usr/bin/clear $fs/usr/bin
44 cp $_pkg/usr/bin/tset $fs/usr/bin
45 cp $_pkg/usr/bin/reset $fs/usr/bin
46 }
48 # Overlap busybox
49 pre_install()
50 {
51 rm -f $1/usr/bin/clear
52 rm -f $1/usr/bin/reset
53 }
55 post_remove()
56 {
57 ln -s /bin/busybox /usr/bin/clear
58 ln -s /bin/busybox /usr/bin/reset
59 }