wok-6.x annotate ncursesw/receipt @ rev 12792

ncurses: silently install tic
author Christophe Lincoln <pankso@slitaz.org>
date Wed May 16 12:15:00 2012 +0200 (2012-05-16)
parents fb9821d2c0ce
children 079fed3fed2d
rev   line source
pankso@4884 1 # SliTaz package receipt.
pankso@4884 2
pankso@4884 3 PACKAGE="ncursesw"
slaxemulator@9487 4 VERSION="5.9"
pankso@4884 5 SOURCE="ncurses"
pankso@4884 6 CATEGORY="base-system"
pankso@4884 7 SHORT_DESC="Library of functions to manage display on terminals."
pankso@4884 8 MAINTAINER="pankso@slitaz.org"
pankso@4884 9 TARBALL="$SOURCE-$VERSION.tar.gz"
pankso@4884 10 WEB_SITE="http://invisible-island.net/ncurses/"
pankso@4884 11 WGET_URL="ftp://invisible-island.net/ncurses/$TARBALL"
pankso@12773 12 HOST_ARCH="i486 arm"
pankso@12773 13
pankso@12773 14 DEPENDS="ncurses-common"
pankso@12774 15 BUILD_DEPENDS="gcc"
pankso@4884 16
pankso@4884 17 # Rules to configure and make the package.
pankso@4884 18 compile_rules()
pankso@4884 19 {
pankso@12774 20 # Ncurses need an installed /usr/bin/tic witch is in ncursesw-extra. And
pankso@12774 21 # when cross compiling we can't use the freshly cooked binary. See cook log:
pankso@12774 22 #
pankso@12774 23 #** Building terminfo database, please wait...
pankso@12774 24 #Running /usr/bin/tic to install /home/slitaz/wok/ncurses/install/usr/share/terminfo
pankso@12774 25 #
pankso@12775 26 if [ ! -d "/var/lib/tazpkg/installed/ncursesw-extra" ]; then
pankso@12792 27 echo "Installing: ncursesw-extra"
pankso@12792 28 tazpkg get-install ncursesw-extra 2>/dev/null 1>/dev/null
pankso@12774 29 fi
pankso@4884 30 cd $src
pankso@4884 31 sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \
pankso@4884 32 include/Makefile.in
pankso@4884 33 ./configure \
pankso@4884 34 --libdir=/lib \
pankso@4884 35 --sysconfdir=/etc \
pankso@4884 36 --with-shared \
pankso@4884 37 --without-debug \
pankso@4884 38 --without-ada \
pankso@4884 39 --enable-widec \
pankso@12773 40 --with-build-cc="gcc -D_GNU_SOURCE" \
pankso@12773 41 $CONFIGURE_ARGS &&
pankso@10274 42 make && make install
pankso@4884 43 }
pankso@4884 44
pankso@4884 45 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@4884 46 genpkg_rules()
pankso@4884 47 {
pankso@4884 48 mkdir -p $fs/lib $fs/usr/bin
pankso@12773 49
pankso@4884 50 # Libs.
pankso@12773 51 cp -a $install/lib/libncursesw.so* $fs/lib
pankso@12773 52
pankso@4884 53 # Base progs.
pankso@12773 54 cp $install/usr/bin/clear $fs/usr/bin
pankso@12773 55 cp $install/usr/bin/tset $fs/usr/bin
pankso@12773 56 cp $install/usr/bin/reset $fs/usr/bin
pankso@4884 57 }
pascal@8878 58
pascal@8878 59 # Overlap busybox
pascal@8878 60 pre_install()
pascal@8878 61 {
pankso@12773 62 rm -f $root/usr/bin/clear
pankso@12773 63 rm -f $root/usr/bin/reset
pascal@8878 64 }
pascal@8878 65
pascal@8878 66 post_remove()
pascal@8878 67 {
pankso@12773 68 ln -s /bin/busybox $root/usr/bin/clear
pankso@12773 69 ln -s /bin/busybox $root/usr/bin/reset
pascal@8878 70 }