wok-current view ncursesw/receipt @ rev 15473

Add some licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 09 20:47:29 2013 +0000 (2013-11-09)
parents 079fed3fed2d
children 23c3aed67cd9
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 mkdir -p $DESTDIR/usr/lib/terminfo
36 sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \
37 include/Makefile.in
38 ./configure \
39 --libdir=/lib \
40 --sysconfdir=/etc \
41 --with-shared \
42 --without-debug \
43 --without-ada \
44 --enable-widec \
45 --with-build-cc="gcc -D_GNU_SOURCE" \
46 $CONFIGURE_ARGS &&
47 make && make install
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 mkdir -p $fs/lib $fs/usr/bin
55 # Libs.
56 cp -a $install/lib/libncursesw.so* $fs/lib
58 # Base progs.
59 cp $install/usr/bin/clear $fs/usr/bin
60 cp $install/usr/bin/tset $fs/usr/bin
61 cp $install/usr/bin/reset $fs/usr/bin
62 }
64 # Overlap busybox
65 pre_install()
66 {
67 rm -f $root/usr/bin/clear
68 rm -f $root/usr/bin/reset
69 }
71 post_remove()
72 {
73 ln -s /bin/busybox $root/usr/bin/clear
74 ln -s /bin/busybox $root/usr/bin/reset
75 }