wok-6.x view ncursesw/receipt @ rev 24990
idesk: imlib2 >= 1.7.5 support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 13 20:03:04 2022 +0000 (2022-05-13) |
parents | ee53899c6189 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="ncursesw"
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 SOURCE="ncurses"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="$GNU_MIRROR/$SOURCE/$TARBALL"
15 DEPENDS="ncurses-common"
16 BUILD_DEPENDS=""
18 HOST_ARCH="i486 arm"
20 case "$ARCH" in
21 arm) BUILD_DEPENDS="" ;;
22 esac
24 current_version()
25 {
26 wget -O - https://invisible-mirror.net/archives/ncurses/ 2>/dev/null | \
27 sed '/ncurses-/!d;s|.*ncurses-||;s|.tar.*||' | sed '$!d'
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 # Ncurses need an installed /usr/bin/tic which is in ncursesw-extra. And
34 # when cross compiling we can't use the freshly cooked binary. See cook log:
35 #
36 #** Building terminfo database, please wait...
37 #Running /usr/bin/tic to install /home/slitaz/wok/ncurses/install/usr/share/terminfo
38 #
39 if [ ! -d "/var/lib/tazpkg/installed/ncursesw-extra" ]
40 then
41 echo "Installing: ncursesw-extra"
42 tazpkg get-install ncursesw-extra 2>/dev/null 1>/dev/null
43 fi
45 mkdir -p $DESTDIR/usr/lib/terminfo
47 # search string not in file (6.1)
48 # sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \
49 # include/Makefile.in
51 ./configure \
52 --libdir=/lib \
53 --sysconfdir=/etc \
54 --with-shared \
55 --without-debug \
56 --without-ada \
57 --enable-widec \
58 --with-build-cc="gcc -D_GNU_SOURCE" \
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 mkdir -p $fs/usr/bin
74 # Libraries
75 cp -a $install/lib/libncursesw.so* $fs/lib
77 # Base programs
78 cp $install/usr/bin/clear $fs/usr/bin
79 cp $install/usr/bin/tset $fs/usr/bin
80 cp $install/usr/bin/reset $fs/usr/bin
81 }
83 # Overlap busybox
84 pre_install()
85 {
86 rm -f $root/usr/bin/clear
87 rm -f $root/usr/bin/reset
88 }
90 post_remove()
91 {
92 ln -s /bin/busybox $root/usr/bin/clear
93 ln -s /bin/busybox $root/usr/bin/reset
94 }