wok annotate ncurses/receipt @ rev 23515

busybox: musl & diet may fail (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Apr 06 12:11:08 2020 +0200 (2020-04-06)
parents f7951fed4db2
children ee53899c6189
rev   line source
pankso@7 1 # SliTaz package receipt.
pankso@7 2
pankso@7 3 PACKAGE="ncurses"
Hans-G?nter@23231 4 VERSION="6.2"
pankso@210 5 CATEGORY="base-system"
pascal@2086 6 SHORT_DESC="Library of functions to manage display on terminals."
pankso@7 7 MAINTAINER="pankso@slitaz.org"
Hans-G?nter@21526 8 LICENSE="MIT"
Hans-G?nter@21526 9 WEB_SITE="https://www.gnu.org/software/ncurses/ncurses.html"
Hans-G?nter@21526 10
pankso@7 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21526 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
Hans-G?nter@21526 13
Hans-G?nter@21526 14 DEPENDS="libtic libtinfo ncurses-common"
Hans-G?nter@21526 15 BUILD_DEPENDS=""
Hans-G?nter@21526 16 SPLIT="libform libmenu libpanel libtic libtinfo ncurses-common \
Hans-G?nter@21526 17 ncurses-dev ncurses-extra ncurses-man"
Hans-G?nter@21526 18
pankso@12773 19 HOST_ARCH="i486 arm"
pankso@12773 20
Hans-G?nter@23231 21 # @maintainer: Please update also: libform libmenu libpanel libtic libtinfo
Hans-G?nter@23231 22
pankso@7 23 # Rules to configure and make the package.
pankso@7 24 compile_rules()
pankso@7 25 {
Hans-G?nter@21526 26 # Ncurses need an installed /usr/bin/tic which is in ncursesw-extra. And
pankso@12774 27 # when cross compiling we can't use the freshly cooked binary. See cook log:
pankso@12774 28 #
pankso@12774 29 #** Building terminfo database, please wait...
pankso@12774 30 #Running /usr/bin/tic to install /home/slitaz/wok/ncurses/install/usr/share/terminfo
pankso@12774 31 #
Hans-G?nter@22370 32 if [ ! -d "/var/lib/tazpkg/installed/ncursesw-extra" ]
Hans-G?nter@22370 33 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 --with-build-cc="gcc -D_GNU_SOURCE" \
Hans-G?nter@21526 51 --with-termlib \
Hans-G?nter@21526 52 --with-ticlib \
Hans-G?nter@21526 53 --enable-pc-files \
pascal@17384 54 $CONFIGURE_ARGS &&
Hans-G?nter@23231 55 # 6.2
Hans-G?nter@23231 56 sed -i '186s|TICDIR "!= |TICDIR " != |' \
Hans-G?nter@22370 57 misc/run_tic.sh &&
Hans-G?nter@21526 58 make &&
Hans-G?nter@21526 59 make install
pankso@7 60 }
pankso@7 61
pankso@7 62 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@7 63 genpkg_rules()
pankso@7 64 {
pankso@4884 65 mkdir -p $fs/lib
Hans-G?nter@23231 66 cp -a $install/lib/libncurses.so* $fs/lib
pankso@7 67 }