wok-next view ncurses/receipt @ rev 19561

Initial commit to wok-next (SliTaz v.6 now): update 61 packages (about) according to LFS 7.10
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Dec 16 01:16:56 2016 +0200 (2016-12-16)
parents 1feee7ca564d
children e9bd4eca24b2
line source
1 # SliTaz package receipt.
3 PACKAGE="ncurses"
4 VERSION="6.0"
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/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://ftp.gnu.org/gnu/ncurses/$TARBALL"
13 HOST_ARCH="i486 arm"
15 DEPENDS=""
16 BUILD_DEPENDS="flex"
17 SPLIT="ncurses-libform ncurses-libmenu ncurses-libpanel ncurses-extra"
19 case "$ARCH" in
20 arm) BUILD_DEPENDS="" ;;
21 esac
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 # # Ncurses need an installed /usr/bin/tic witch is in ncursesw-extra. And
27 # # when cross compiling we can't use the freshly cooked binary. See cook log:
28 # #
29 # #** Building terminfo database, please wait...
30 # #Running /usr/bin/tic to install /home/slitaz/wok/ncurses/install/usr/share/terminfo
31 # #
32 # if [ ! -d "/var/lib/tazpkg/installed/ncursesw-extra" ]; then
33 # echo "Installing: ncursesw-extra"
34 # tazpkg get-install ncursesw-extra 2>/dev/null 1>/dev/null
35 # fi
37 ./configure \
38 --with-shared \
39 --without-debug \
40 --without-ada \
41 --enable-widec \
42 --with-build-cc="gcc -D_GNU_SOURCE" \
43 --enable-pc-files \
44 --with-pkg-config-libdir=/usr/lib/pkgconfig \
45 $CONFIGURE_ARGS &&
46 make && make install
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 # binaries and library
53 cook_copy_files clear tset reset libncursesw.so*
55 # tabset
56 cook_copy_folders tabset
58 # terminfo
59 cook_copy_files ansi linux rxvt vt100 vt102* xterm xterm-256color \
60 xterm-color xterm-new xterm-vt220
61 }
63 post_remove()
64 {
65 # restore Busybox applet links
66 ln -s /bin/busybox $root/usr/bin/clear
67 ln -s /bin/busybox $root/usr/bin/reset
68 }