wok annotate ncursesw/receipt @ rev 22040

updated tokyocabinet and tokyocabinet-dev (1.4.32 -> 1.4.48)
author Hans-G?nter Theisgen
date Mon Oct 21 17:24:12 2019 +0100 (2019-10-21)
parents a78610b2eb47
children 784b7224f57a
rev   line source
pankso@4884 1 # SliTaz package receipt.
pankso@4884 2
pankso@4884 3 PACKAGE="ncursesw"
Hans-G?nter@21526 4 VERSION="6.1"
pankso@4884 5 CATEGORY="base-system"
pankso@4884 6 SHORT_DESC="Library of functions to manage display on terminals."
pankso@4884 7 MAINTAINER="pankso@slitaz.org"
pascal@15601 8 LICENSE="MIT"
Hans-G?nter@21526 9 WEB_SITE="https://www.gnu.org/software/ncurses/ncurses.html"
Hans-G?nter@21526 10
Hans-G?nter@21526 11 SOURCE="ncurses"
pankso@4884 12 TARBALL="$SOURCE-$VERSION.tar.gz"
Hans-G?nter@21526 13 WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL"
pankso@12773 14
pankso@12773 15 DEPENDS="ncurses-common"
Hans-G?nter@21526 16 BUILD_DEPENDS=""
Hans-G?nter@21526 17
Hans-G?nter@21526 18 HOST_ARCH="i486 arm"
pankso@4884 19
pankso@12915 20 case "$ARCH" in
pankso@12915 21 arm) BUILD_DEPENDS="" ;;
pankso@12915 22 esac
pankso@12915 23
pankso@4884 24 # Rules to configure and make the package.
pankso@4884 25 compile_rules()
pankso@4884 26 {
Hans-G?nter@21526 27 # Ncurses need an installed /usr/bin/tic which is in ncursesw-extra. And
pankso@12774 28 # when cross compiling we can't use the freshly cooked binary. See cook log:
pankso@12774 29 #
pankso@12774 30 #** Building terminfo database, please wait...
pankso@12774 31 #Running /usr/bin/tic to install /home/slitaz/wok/ncurses/install/usr/share/terminfo
pankso@12774 32 #
pankso@12775 33 if [ ! -d "/var/lib/tazpkg/installed/ncursesw-extra" ]; then
pankso@12792 34 echo "Installing: ncursesw-extra"
pankso@12792 35 tazpkg get-install ncursesw-extra 2>/dev/null 1>/dev/null
pankso@12774 36 fi
Hans-G?nter@21526 37
pascal@15083 38 mkdir -p $DESTDIR/usr/lib/terminfo
Hans-G?nter@21526 39
Hans-G?nter@21526 40 # search string not in file (6.1)
Hans-G?nter@21526 41 # sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \
Hans-G?nter@21526 42 # include/Makefile.in
Hans-G?nter@21526 43
Hans-G?nter@21526 44 ./configure \
Hans-G?nter@21526 45 --libdir=/lib \
Hans-G?nter@21526 46 --sysconfdir=/etc \
Hans-G?nter@21526 47 --with-shared \
Hans-G?nter@21526 48 --without-debug \
Hans-G?nter@21526 49 --without-ada \
Hans-G?nter@21526 50 --enable-widec \
Hans-G?nter@21526 51 --with-build-cc="gcc -D_GNU_SOURCE" \
Hans-G?nter@21526 52 --enable-pc-files \
pankso@12773 53 $CONFIGURE_ARGS &&
Hans-G?nter@21526 54 make &&
Hans-G?nter@21526 55 make install
pankso@4884 56 }
pankso@4884 57
pankso@4884 58 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@4884 59 genpkg_rules()
pankso@4884 60 {
Hans-G?nter@21526 61 mkdir -p $fs/lib
Hans-G?nter@21526 62 mkdir -p $fs/usr/bin
pankso@12773 63
Hans-G?nter@21526 64 # Libraries
pankso@12773 65 cp -a $install/lib/libncursesw.so* $fs/lib
pankso@12773 66
Hans-G?nter@21526 67 # Base programs
Hans-G?nter@21526 68 cp $install/usr/bin/clear $fs/usr/bin
Hans-G?nter@21526 69 cp $install/usr/bin/tset $fs/usr/bin
Hans-G?nter@21526 70 cp $install/usr/bin/reset $fs/usr/bin
pankso@4884 71 }
pascal@8878 72
pascal@8878 73 # Overlap busybox
pascal@8878 74 pre_install()
pascal@8878 75 {
pankso@12773 76 rm -f $root/usr/bin/clear
pankso@12773 77 rm -f $root/usr/bin/reset
pascal@8878 78 }
pascal@8878 79
pascal@8878 80 post_remove()
pascal@8878 81 {
pankso@12773 82 ln -s /bin/busybox $root/usr/bin/clear
pankso@12773 83 ln -s /bin/busybox $root/usr/bin/reset
pascal@8878 84 }