wok view ncursesw/receipt @ rev 8931

Up: ncurses to 5.8.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Mar 01 04:03:29 2011 +0000 (2011-03-01)
parents 2ad34d8fdfe7
children 129bb5b11a7e
line source
1 # SliTaz package receipt.
3 PACKAGE="ncursesw"
4 VERSION="5.8"
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 SRC_WANTED="$SOURCE"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \
19 include/Makefile.in
20 ./configure \
21 --prefix=/usr \
22 --libdir=/lib \
23 --sysconfdir=/etc \
24 --infodir=/usr/share/info \
25 --mandir=/usr/share/man \
26 --with-shared \
27 --without-debug \
28 --without-ada \
29 --enable-widec \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$PWD/_pkg install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/lib $fs/usr/bin
40 # Libs.
41 cp -a $_pkg/lib/libncursesw.so* $fs/lib
43 # Base progs.
44 cp $_pkg/usr/bin/clear $fs/usr/bin
45 cp $_pkg/usr/bin/tset $fs/usr/bin
46 cp $_pkg/usr/bin/reset $fs/usr/bin
47 }
49 # Overlap busybox
50 pre_install()
51 {
52 rm -f $1/usr/bin/clear
53 rm -f $1/usr/bin/reset
54 }
56 post_remove()
57 {
58 ln -s /bin/busybox /usr/bin/clear
59 ln -s /bin/busybox /usr/bin/reset
60 }