wok view ncursesw/receipt @ rev 23466

updated python-beaker (1.5.4 -> 1.11.0)
author Hans-G?nter Theisgen
date Sun Apr 05 08:56:53 2020 +0100 (2020-04-05)
parents 784b7224f57a
children ee53899c6189
line source
1 # SliTaz package receipt.
3 PACKAGE="ncursesw"
4 VERSION="6.2"
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" ]
34 then
35 echo "Installing: ncursesw-extra"
36 tazpkg get-install ncursesw-extra 2>/dev/null 1>/dev/null
37 fi
39 mkdir -p $DESTDIR/usr/lib/terminfo
41 # search string not in file (6.1)
42 # sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \
43 # include/Makefile.in
45 ./configure \
46 --libdir=/lib \
47 --sysconfdir=/etc \
48 --with-shared \
49 --without-debug \
50 --without-ada \
51 --enable-widec \
52 --with-build-cc="gcc -D_GNU_SOURCE" \
53 --enable-pc-files \
54 $CONFIGURE_ARGS &&
55 # 6.2
56 sed -i '186s|TICDIR "!= |TICDIR " != |' \
57 misc/run_tic.sh &&
58 make &&
59 make install
60 }
62 # Rules to gen a SliTaz package suitable for Tazpkg.
63 genpkg_rules()
64 {
65 mkdir -p $fs/lib
66 mkdir -p $fs/usr/bin
68 # Libraries
69 cp -a $install/lib/libncursesw.so* $fs/lib
71 # Base programs
72 cp $install/usr/bin/clear $fs/usr/bin
73 cp $install/usr/bin/tset $fs/usr/bin
74 cp $install/usr/bin/reset $fs/usr/bin
75 }
77 # Overlap busybox
78 pre_install()
79 {
80 rm -f $root/usr/bin/clear
81 rm -f $root/usr/bin/reset
82 }
84 post_remove()
85 {
86 ln -s /bin/busybox $root/usr/bin/clear
87 ln -s /bin/busybox $root/usr/bin/reset
88 }