wok-next annotate ncursesw/receipt @ rev 12773
ncurses*: add to arm pakages (now will try to link ncruses apps again it :-)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 13 04:31:48 2012 +0200 (2012-05-13) |
parents | 3b8379165c1b |
children | 4478a745a1e5 |
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 # Ncursesw need an installed /usr/bin/tic witch is in ncursesw-extra. And |
pankso@12773 | 15 # when cross compiling we can't use the freshly cooked binary. See cook log: |
pankso@12773 | 16 # |
pankso@12773 | 17 #** Building terminfo database, please wait... |
pankso@12773 | 18 #Running /usr/bin/tic to install /home/slitaz/wok/ncurses/install/usr/share/terminfo |
pankso@12773 | 19 # |
pankso@12773 | 20 DEPENDS="ncurses-common" |
pankso@12773 | 21 BUILD_DEPENDS="gcc ncursesw-extra" |
pankso@4884 | 22 |
pankso@4884 | 23 # Rules to configure and make the package. |
pankso@4884 | 24 compile_rules() |
pankso@4884 | 25 { |
pankso@4884 | 26 cd $src |
pankso@4884 | 27 sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \ |
pankso@4884 | 28 include/Makefile.in |
pankso@4884 | 29 ./configure \ |
pankso@4884 | 30 --libdir=/lib \ |
pankso@4884 | 31 --sysconfdir=/etc \ |
pankso@4884 | 32 --with-shared \ |
pankso@4884 | 33 --without-debug \ |
pankso@4884 | 34 --without-ada \ |
pankso@4884 | 35 --enable-widec \ |
pankso@12773 | 36 --with-build-cc="gcc -D_GNU_SOURCE" \ |
pankso@12773 | 37 $CONFIGURE_ARGS && |
pankso@10274 | 38 make && make install |
pankso@4884 | 39 } |
pankso@4884 | 40 |
pankso@4884 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@4884 | 42 genpkg_rules() |
pankso@4884 | 43 { |
pankso@4884 | 44 mkdir -p $fs/lib $fs/usr/bin |
pankso@12773 | 45 |
pankso@4884 | 46 # Libs. |
pankso@12773 | 47 cp -a $install/lib/libncursesw.so* $fs/lib |
pankso@12773 | 48 |
pankso@4884 | 49 # Base progs. |
pankso@12773 | 50 cp $install/usr/bin/clear $fs/usr/bin |
pankso@12773 | 51 cp $install/usr/bin/tset $fs/usr/bin |
pankso@12773 | 52 cp $install/usr/bin/reset $fs/usr/bin |
pankso@4884 | 53 } |
pascal@8878 | 54 |
pascal@8878 | 55 # Overlap busybox |
pascal@8878 | 56 pre_install() |
pascal@8878 | 57 { |
pankso@12773 | 58 rm -f $root/usr/bin/clear |
pankso@12773 | 59 rm -f $root/usr/bin/reset |
pascal@8878 | 60 } |
pascal@8878 | 61 |
pascal@8878 | 62 post_remove() |
pascal@8878 | 63 { |
pankso@12773 | 64 ln -s /bin/busybox $root/usr/bin/clear |
pankso@12773 | 65 ln -s /bin/busybox $root/usr/bin/reset |
pascal@8878 | 66 } |