wok-current view ncursesw/receipt @ rev 21835

updated re2c (0.13.5 -> 1.2.1)
author Hans-G?nter Theisgen
date Sat Sep 14 10:21:53 2019 +0100 (2019-09-14)
parents a78610b2eb47
children 784b7224f57a
line source
1 # SliTaz package receipt.
3 PACKAGE="ncursesw"
4 VERSION="6.1"
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 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # Ncurses need an installed /usr/bin/tic which is in ncursesw-extra. And
28 # when cross compiling we can't use the freshly cooked binary. See cook log:
29 #
30 #** Building terminfo database, please wait...
31 #Running /usr/bin/tic to install /home/slitaz/wok/ncurses/install/usr/share/terminfo
32 #
33 if [ ! -d "/var/lib/tazpkg/installed/ncursesw-extra" ]; then
34 echo "Installing: ncursesw-extra"
35 tazpkg get-install ncursesw-extra 2>/dev/null 1>/dev/null
36 fi
38 mkdir -p $DESTDIR/usr/lib/terminfo
40 # search string not in file (6.1)
41 # sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \
42 # include/Makefile.in
44 ./configure \
45 --libdir=/lib \
46 --sysconfdir=/etc \
47 --with-shared \
48 --without-debug \
49 --without-ada \
50 --enable-widec \
51 --with-build-cc="gcc -D_GNU_SOURCE" \
52 --enable-pc-files \
53 $CONFIGURE_ARGS &&
54 make &&
55 make install
56 }
58 # Rules to gen a SliTaz package suitable for Tazpkg.
59 genpkg_rules()
60 {
61 mkdir -p $fs/lib
62 mkdir -p $fs/usr/bin
64 # Libraries
65 cp -a $install/lib/libncursesw.so* $fs/lib
67 # Base programs
68 cp $install/usr/bin/clear $fs/usr/bin
69 cp $install/usr/bin/tset $fs/usr/bin
70 cp $install/usr/bin/reset $fs/usr/bin
71 }
73 # Overlap busybox
74 pre_install()
75 {
76 rm -f $root/usr/bin/clear
77 rm -f $root/usr/bin/reset
78 }
80 post_remove()
81 {
82 ln -s /bin/busybox $root/usr/bin/clear
83 ln -s /bin/busybox $root/usr/bin/reset
84 }