wok-6.x view ncursesw/receipt @ rev 18391
Add: WIP open-vm-tools (10.0.0)
author | Nathan Neulinger <nneul@neulinger.org> |
---|---|
date | Fri Sep 18 23:31:50 2015 +0000 (2015-09-18) |
parents | c971db4d1bba |
children | 1feee7ca564d |
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 LICENSE="MIT"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://invisible-island.net/ncurses/"
12 WGET_URL="ftp://invisible-island.net/ncurses/$TARBALL"
13 HOST_ARCH="i486 arm"
15 DEPENDS="ncurses-common"
16 BUILD_DEPENDS="gcc"
18 case "$ARCH" in
19 arm) BUILD_DEPENDS="" ;;
20 esac
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 # Ncurses need an installed /usr/bin/tic witch is in ncursesw-extra. And
26 # when cross compiling we can't use the freshly cooked binary. See cook log:
27 #
28 #** Building terminfo database, please wait...
29 #Running /usr/bin/tic to install /home/slitaz/wok/ncurses/install/usr/share/terminfo
30 #
31 if [ ! -d "/var/lib/tazpkg/installed/ncursesw-extra" ]; then
32 echo "Installing: ncursesw-extra"
33 tazpkg get-install ncursesw-extra 2>/dev/null 1>/dev/null
34 fi
35 cd $src
36 mkdir -p $DESTDIR/usr/lib/terminfo
37 sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \
38 include/Makefile.in
39 ./configure \
40 --libdir=/lib \
41 --sysconfdir=/etc \
42 --with-shared \
43 --without-debug \
44 --without-ada \
45 --enable-widec \
46 --with-build-cc="gcc -D_GNU_SOURCE" \
47 $CONFIGURE_ARGS &&
48 make && make install
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 mkdir -p $fs/lib $fs/usr/bin
56 # Libs.
57 cp -a $install/lib/libncursesw.so* $fs/lib
59 # Base progs.
60 cp $install/usr/bin/clear $fs/usr/bin
61 cp $install/usr/bin/tset $fs/usr/bin
62 cp $install/usr/bin/reset $fs/usr/bin
63 }
65 # Overlap busybox
66 pre_install()
67 {
68 rm -f $root/usr/bin/clear
69 rm -f $root/usr/bin/reset
70 }
72 post_remove()
73 {
74 ln -s /bin/busybox $root/usr/bin/clear
75 ln -s /bin/busybox $root/usr/bin/reset
76 }