wok-6.x annotate ncursesw/receipt @ rev 21003
updated grooms (1.0.5 -> 1.0.9)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 08 17:22:14 2019 +0100 (2019-03-08) |
parents | 1feee7ca564d |
children | 94ece03c2cb1 |
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" |
pascal@15601 | 9 LICENSE="MIT" |
pankso@4884 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@20669 | 11 WEB_SITE="https://invisible-island.net/ncurses/" |
pankso@4884 | 12 WGET_URL="ftp://invisible-island.net/ncurses/$TARBALL" |
pankso@12773 | 13 HOST_ARCH="i486 arm" |
pankso@12773 | 14 |
pankso@12773 | 15 DEPENDS="ncurses-common" |
pankso@12774 | 16 BUILD_DEPENDS="gcc" |
pankso@4884 | 17 |
pankso@12915 | 18 case "$ARCH" in |
pankso@12915 | 19 arm) BUILD_DEPENDS="" ;; |
pankso@12915 | 20 esac |
pankso@12915 | 21 |
pankso@4884 | 22 # Rules to configure and make the package. |
pankso@4884 | 23 compile_rules() |
pankso@4884 | 24 { |
pankso@12774 | 25 # Ncurses need an installed /usr/bin/tic witch is in ncursesw-extra. And |
pankso@12774 | 26 # when cross compiling we can't use the freshly cooked binary. See cook log: |
pankso@12774 | 27 # |
pankso@12774 | 28 #** Building terminfo database, please wait... |
pankso@12774 | 29 #Running /usr/bin/tic to install /home/slitaz/wok/ncurses/install/usr/share/terminfo |
pankso@12774 | 30 # |
pankso@12775 | 31 if [ ! -d "/var/lib/tazpkg/installed/ncursesw-extra" ]; then |
pankso@12792 | 32 echo "Installing: ncursesw-extra" |
pankso@12792 | 33 tazpkg get-install ncursesw-extra 2>/dev/null 1>/dev/null |
pankso@12774 | 34 fi |
pankso@4884 | 35 cd $src |
pascal@15083 | 36 mkdir -p $DESTDIR/usr/lib/terminfo |
pankso@4884 | 37 sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \ |
pankso@4884 | 38 include/Makefile.in |
pankso@4884 | 39 ./configure \ |
pankso@4884 | 40 --libdir=/lib \ |
pankso@4884 | 41 --sysconfdir=/etc \ |
pankso@4884 | 42 --with-shared \ |
pankso@4884 | 43 --without-debug \ |
pankso@4884 | 44 --without-ada \ |
pankso@4884 | 45 --enable-widec \ |
pankso@12773 | 46 --with-build-cc="gcc -D_GNU_SOURCE" \ |
al@19542 | 47 --enable-pc-files \ |
pankso@12773 | 48 $CONFIGURE_ARGS && |
pankso@10274 | 49 make && make install |
pankso@4884 | 50 } |
pankso@4884 | 51 |
pankso@4884 | 52 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@4884 | 53 genpkg_rules() |
pankso@4884 | 54 { |
pankso@4884 | 55 mkdir -p $fs/lib $fs/usr/bin |
pankso@12773 | 56 |
pankso@4884 | 57 # Libs. |
pankso@12773 | 58 cp -a $install/lib/libncursesw.so* $fs/lib |
pankso@12773 | 59 |
pankso@4884 | 60 # Base progs. |
pankso@12773 | 61 cp $install/usr/bin/clear $fs/usr/bin |
pankso@12773 | 62 cp $install/usr/bin/tset $fs/usr/bin |
pankso@12773 | 63 cp $install/usr/bin/reset $fs/usr/bin |
pankso@4884 | 64 } |
pascal@8878 | 65 |
pascal@8878 | 66 # Overlap busybox |
pascal@8878 | 67 pre_install() |
pascal@8878 | 68 { |
pankso@12773 | 69 rm -f $root/usr/bin/clear |
pankso@12773 | 70 rm -f $root/usr/bin/reset |
pascal@8878 | 71 } |
pascal@8878 | 72 |
pascal@8878 | 73 post_remove() |
pascal@8878 | 74 { |
pankso@12773 | 75 ln -s /bin/busybox $root/usr/bin/clear |
pankso@12773 | 76 ln -s /bin/busybox $root/usr/bin/reset |
pascal@8878 | 77 } |