wok annotate ncursesw/receipt @ rev 9961
deadbeef: fix bdeps
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed May 18 15:43:27 2011 +0200 (2011-05-18) |
parents | 129bb5b11a7e |
children | ef827f291143 |
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 --prefix=/usr \ |
pankso@4884 | 21 --libdir=/lib \ |
pankso@4884 | 22 --sysconfdir=/etc \ |
pankso@4884 | 23 --infodir=/usr/share/info \ |
pankso@4884 | 24 --mandir=/usr/share/man \ |
pankso@4884 | 25 --with-shared \ |
pankso@4884 | 26 --without-debug \ |
pankso@4884 | 27 --without-ada \ |
pankso@4884 | 28 --enable-widec \ |
pankso@4884 | 29 $CONFIGURE_ARGS && |
pankso@4884 | 30 make && |
pankso@4884 | 31 make DESTDIR=$PWD/_pkg install |
pankso@4884 | 32 } |
pankso@4884 | 33 |
pankso@4884 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@4884 | 35 genpkg_rules() |
pankso@4884 | 36 { |
pankso@4884 | 37 mkdir -p $fs/lib $fs/usr/bin |
pankso@4884 | 38 |
pankso@4884 | 39 # Libs. |
pankso@4884 | 40 cp -a $_pkg/lib/libncursesw.so* $fs/lib |
pankso@4884 | 41 |
pankso@4884 | 42 # Base progs. |
pankso@4884 | 43 cp $_pkg/usr/bin/clear $fs/usr/bin |
pankso@4884 | 44 cp $_pkg/usr/bin/tset $fs/usr/bin |
pankso@4884 | 45 cp $_pkg/usr/bin/reset $fs/usr/bin |
pankso@4884 | 46 } |
pascal@8878 | 47 |
pascal@8878 | 48 # Overlap busybox |
pascal@8878 | 49 pre_install() |
pascal@8878 | 50 { |
pascal@8878 | 51 rm -f $1/usr/bin/clear |
pascal@8878 | 52 rm -f $1/usr/bin/reset |
pascal@8878 | 53 } |
pascal@8878 | 54 |
pascal@8878 | 55 post_remove() |
pascal@8878 | 56 { |
pascal@8878 | 57 ln -s /bin/busybox /usr/bin/clear |
pascal@8878 | 58 ln -s /bin/busybox /usr/bin/reset |
pascal@8878 | 59 } |