wok view ncurses/receipt @ rev 25669

Up lapack (3.12.0), less (633), libarchive (3.7.2), liblouis (3.28.0), libmicrohttpd (1.0.1), libpng (1.6.43), libssh (0.10.6), libtasn1 (4.19.0), libtirpc (1.3.4), libvpx (1.14.0), libwebp (1.3.2), logrotate (3.21.0), lua (5.4.6)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 25 16:11:20 2024 +0000 (9 months ago)
parents ee53899c6189
children 4f02a37747b4
line source
1 # SliTaz package receipt.
3 PACKAGE="ncurses"
4 VERSION="6.3"
5 CATEGORY="base-system"
6 SHORT_DESC="Library of functions to manage display on terminals."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://www.gnu.org/software/ncurses/ncurses.html"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="libtic libtinfo ncurses-common"
15 BUILD_DEPENDS=""
16 SPLIT="libform libmenu libpanel libtic libtinfo ncurses-common \
17 ncurses-dev ncurses-extra ncurses-man"
19 HOST_ARCH="i486 arm"
21 # @maintainer: Please update also: libform libmenu libpanel libtic libtinfo
23 current_version()
24 {
25 wget -O - https://invisible-mirror.net/archives/ncurses/ 2>/dev/null | \
26 sed '/ncurses-/!d;s|.*ncurses-||;s|.tar.*||' | sed '$!d'
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 # Ncurses need an installed /usr/bin/tic which is in ncursesw-extra. And
33 # when cross compiling we can't use the freshly cooked binary. See cook log:
34 #
35 #** Building terminfo database, please wait...
36 #Running /usr/bin/tic to install /home/slitaz/wok/ncurses/install/usr/share/terminfo
37 #
38 if [ ! -d "/var/lib/tazpkg/installed/ncursesw-extra" ]
39 then
40 echo "Installing: ncursesw-extra"
41 tazpkg get-install ncursesw-extra 2>/dev/null 1>/dev/null
42 fi
44 mkdir -p $DESTDIR/usr/lib/terminfo
46 # search string not in file (6.1)
47 # sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \
48 # include/Makefile.in
50 ./configure \
51 --libdir=/lib \
52 --sysconfdir=/etc \
53 --with-shared \
54 --without-debug \
55 --without-ada \
56 --with-build-cc="gcc -D_GNU_SOURCE" \
57 --with-termlib \
58 --with-ticlib \
59 --enable-pc-files \
60 $CONFIGURE_ARGS &&
61 # 6.2
62 sed -i '186s|TICDIR "!= |TICDIR " != |' \
63 misc/run_tic.sh &&
64 make &&
65 make install
66 }
68 # Rules to gen a SliTaz package suitable for Tazpkg.
69 genpkg_rules()
70 {
71 mkdir -p $fs/lib
72 cp -a $install/lib/libncurses.so* $fs/lib
73 }