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

imlib: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Dec 09 09:49:28 2011 +0100 (2011-12-09)
parents ef827f291143
children 7c64b51d0a8c
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@4884 12
pankso@4884 13 # Rules to configure and make the package.
pankso@4884 14 compile_rules()
pankso@4884 15 {
pankso@4884 16 cd $src
pankso@4884 17 sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \
pankso@4884 18 include/Makefile.in
pankso@4884 19 ./configure \
pankso@4884 20 --libdir=/lib \
pankso@4884 21 --sysconfdir=/etc \
pankso@4884 22 --with-shared \
pankso@4884 23 --without-debug \
pankso@4884 24 --without-ada \
pankso@4884 25 --enable-widec \
pankso@10274 26 --build=$HOST_SYSTEM \
pankso@10274 27 --host=$HOST_SYSTEM &&
pankso@10274 28 make && make install
pankso@4884 29 }
pankso@4884 30
pankso@4884 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@4884 32 genpkg_rules()
pankso@4884 33 {
pankso@4884 34 mkdir -p $fs/lib $fs/usr/bin
pankso@4884 35
pankso@4884 36 # Libs.
pankso@4884 37 cp -a $_pkg/lib/libncursesw.so* $fs/lib
pankso@4884 38
pankso@4884 39 # Base progs.
pankso@4884 40 cp $_pkg/usr/bin/clear $fs/usr/bin
pankso@4884 41 cp $_pkg/usr/bin/tset $fs/usr/bin
pankso@4884 42 cp $_pkg/usr/bin/reset $fs/usr/bin
pankso@4884 43 }
pascal@8878 44
pascal@8878 45 # Overlap busybox
pascal@8878 46 pre_install()
pascal@8878 47 {
pascal@8878 48 rm -f $1/usr/bin/clear
pascal@8878 49 rm -f $1/usr/bin/reset
pascal@8878 50 }
pascal@8878 51
pascal@8878 52 post_remove()
pascal@8878 53 {
slaxemulator@10275 54 ln -s /bin/busybox $1/usr/bin/clear
slaxemulator@10275 55 ln -s /bin/busybox $1/usr/bin/reset
pascal@8878 56 }