wok annotate ncursesw/receipt @ rev 25236

updated python-shapely (1.7.0 -> 1.7.1)
author Hans-G?nter Theisgen
date Wed Jul 13 17:41:12 2022 +0100 (2022-07-13)
parents ee53899c6189
children 1b965c2713aa
rev   line source
pankso@4884 1 # SliTaz package receipt.
pankso@4884 2
pankso@4884 3 PACKAGE="ncursesw"
Hans-G?nter@24960 4 VERSION="6.3"
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
pascal@24071 24 current_version()
pascal@24071 25 {
pascal@24071 26 wget -O - https://invisible-mirror.net/archives/ncurses/ 2>/dev/null | \
pascal@24071 27 sed '/ncurses-/!d;s|.*ncurses-||;s|.tar.*||' | sed '$!d'
pascal@24071 28 }
pascal@24071 29
pankso@4884 30 # Rules to configure and make the package.
pankso@4884 31 compile_rules()
pankso@4884 32 {
Hans-G?nter@21526 33 # Ncurses need an installed /usr/bin/tic which is in ncursesw-extra. And
pankso@12774 34 # when cross compiling we can't use the freshly cooked binary. See cook log:
pankso@12774 35 #
pankso@12774 36 #** Building terminfo database, please wait...
pankso@12774 37 #Running /usr/bin/tic to install /home/slitaz/wok/ncurses/install/usr/share/terminfo
pankso@12774 38 #
Hans-G?nter@22369 39 if [ ! -d "/var/lib/tazpkg/installed/ncursesw-extra" ]
Hans-G?nter@22369 40 then
pankso@12792 41 echo "Installing: ncursesw-extra"
pankso@12792 42 tazpkg get-install ncursesw-extra 2>/dev/null 1>/dev/null
pankso@12774 43 fi
Hans-G?nter@21526 44
pascal@15083 45 mkdir -p $DESTDIR/usr/lib/terminfo
Hans-G?nter@21526 46
Hans-G?nter@21526 47 # search string not in file (6.1)
Hans-G?nter@21526 48 # sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \
Hans-G?nter@21526 49 # include/Makefile.in
Hans-G?nter@21526 50
Hans-G?nter@21526 51 ./configure \
Hans-G?nter@21526 52 --libdir=/lib \
Hans-G?nter@21526 53 --sysconfdir=/etc \
Hans-G?nter@21526 54 --with-shared \
Hans-G?nter@21526 55 --without-debug \
Hans-G?nter@21526 56 --without-ada \
Hans-G?nter@21526 57 --enable-widec \
Hans-G?nter@21526 58 --with-build-cc="gcc -D_GNU_SOURCE" \
Hans-G?nter@21526 59 --enable-pc-files \
pankso@12773 60 $CONFIGURE_ARGS &&
Hans-G?nter@23231 61 # 6.2
Hans-G?nter@23231 62 sed -i '186s|TICDIR "!= |TICDIR " != |' \
Hans-G?nter@22369 63 misc/run_tic.sh &&
Hans-G?nter@21526 64 make &&
Hans-G?nter@21526 65 make install
pankso@4884 66 }
pankso@4884 67
pankso@4884 68 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@4884 69 genpkg_rules()
pankso@4884 70 {
Hans-G?nter@21526 71 mkdir -p $fs/lib
Hans-G?nter@21526 72 mkdir -p $fs/usr/bin
pankso@12773 73
Hans-G?nter@21526 74 # Libraries
Hans-G?nter@23231 75 cp -a $install/lib/libncursesw.so* $fs/lib
pankso@12773 76
Hans-G?nter@21526 77 # Base programs
Hans-G?nter@21526 78 cp $install/usr/bin/clear $fs/usr/bin
Hans-G?nter@21526 79 cp $install/usr/bin/tset $fs/usr/bin
Hans-G?nter@21526 80 cp $install/usr/bin/reset $fs/usr/bin
pankso@4884 81 }
pascal@8878 82
pascal@8878 83 # Overlap busybox
pascal@8878 84 pre_install()
pascal@8878 85 {
pankso@12773 86 rm -f $root/usr/bin/clear
pankso@12773 87 rm -f $root/usr/bin/reset
pascal@8878 88 }
pascal@8878 89
pascal@8878 90 post_remove()
pascal@8878 91 {
pankso@12773 92 ln -s /bin/busybox $root/usr/bin/clear
pankso@12773 93 ln -s /bin/busybox $root/usr/bin/reset
pascal@8878 94 }