wok-undigest rev 1255
copied recipe for ncurses from cooking wok
author | Hans-G?nter Theisgen |
---|---|
date | Sat Aug 13 10:43:24 2022 +0100 (20 months ago) |
parents | cce2687b06f1 |
children | c6b3cb6d06a1 |
files | ncurses/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/ncurses/receipt Sat Aug 13 10:43:24 2022 +0100 1.3 @@ -0,0 +1,73 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="ncurses" 1.7 +VERSION="6.3" 1.8 +CATEGORY="base-system" 1.9 +SHORT_DESC="Library of functions to manage display on terminals." 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +LICENSE="MIT" 1.12 +WEB_SITE="https://www.gnu.org/software/ncurses/ncurses.html" 1.13 + 1.14 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.15 +WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" 1.16 + 1.17 +DEPENDS="libtic libtinfo ncurses-common" 1.18 +BUILD_DEPENDS="" 1.19 +SPLIT="libform libmenu libpanel libtic libtinfo ncurses-common \ 1.20 + ncurses-dev ncurses-extra ncurses-man" 1.21 + 1.22 +HOST_ARCH="i486 arm" 1.23 + 1.24 +# @maintainer: Please update also: libform libmenu libpanel libtic libtinfo 1.25 + 1.26 +current_version() 1.27 +{ 1.28 + wget -O - https://invisible-mirror.net/archives/ncurses/ 2>/dev/null | \ 1.29 + sed '/ncurses-/!d;s|.*ncurses-||;s|.tar.*||' | sed '$!d' 1.30 +} 1.31 + 1.32 +# Rules to configure and make the package. 1.33 +compile_rules() 1.34 +{ 1.35 + # Ncurses need an installed /usr/bin/tic which is in ncursesw-extra. And 1.36 + # when cross compiling we can't use the freshly cooked binary. See cook log: 1.37 + # 1.38 + #** Building terminfo database, please wait... 1.39 + #Running /usr/bin/tic to install /home/slitaz/wok/ncurses/install/usr/share/terminfo 1.40 + # 1.41 + if [ ! -d "/var/lib/tazpkg/installed/ncursesw-extra" ] 1.42 + then 1.43 + echo "Installing: ncursesw-extra" 1.44 + tazpkg get-install ncursesw-extra 2>/dev/null 1>/dev/null 1.45 + fi 1.46 + 1.47 + mkdir -p $DESTDIR/usr/lib/terminfo 1.48 + 1.49 +# search string not in file (6.1) 1.50 +# sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \ 1.51 +# include/Makefile.in 1.52 + 1.53 + ./configure \ 1.54 + --libdir=/lib \ 1.55 + --sysconfdir=/etc \ 1.56 + --with-shared \ 1.57 + --without-debug \ 1.58 + --without-ada \ 1.59 + --with-build-cc="gcc -D_GNU_SOURCE" \ 1.60 + --with-termlib \ 1.61 + --with-ticlib \ 1.62 + --enable-pc-files \ 1.63 + $CONFIGURE_ARGS && 1.64 + # 6.2 1.65 + sed -i '186s|TICDIR "!= |TICDIR " != |' \ 1.66 + misc/run_tic.sh && 1.67 + make && 1.68 + make install 1.69 +} 1.70 + 1.71 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.72 +genpkg_rules() 1.73 +{ 1.74 + mkdir -p $fs/lib 1.75 + cp -a $install/lib/libncurses.so* $fs/lib 1.76 +}