wok view ncursesw/receipt @ rev 20120

Up tazpkg (953)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 14 11:01:32 2017 +0200 (2017-10-14)
parents 23c3aed67cd9
children a78610b2eb47
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 --enable-pc-files \
48 $CONFIGURE_ARGS &&
49 make && make install
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 mkdir -p $fs/lib $fs/usr/bin
57 # Libs.
58 cp -a $install/lib/libncursesw.so* $fs/lib
60 # Base progs.
61 cp $install/usr/bin/clear $fs/usr/bin
62 cp $install/usr/bin/tset $fs/usr/bin
63 cp $install/usr/bin/reset $fs/usr/bin
64 }
66 # Overlap busybox
67 pre_install()
68 {
69 rm -f $root/usr/bin/clear
70 rm -f $root/usr/bin/reset
71 }
73 post_remove()
74 {
75 ln -s /bin/busybox $root/usr/bin/clear
76 ln -s /bin/busybox $root/usr/bin/reset
77 }