wok-next view ncurses/receipt @ rev 20206
Up PyQt-x11-gpl (4.12.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 04 09:19:58 2017 +0100 (2017-11-04) |
parents | 0abbdf485a8d |
children | 90a5eb560fd6 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="ncurses"
4 VERSION="6.0"
5 CATEGORY="base-system"
6 SHORT_DESC="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 BUILD_DEPENDS="flex"
16 BUILD_DEPENDS_arm=""
17 SPLIT="ncurses-libform ncurses-libmenu ncurses-libpanel ncurses-extra \
18 ncurses-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 sed -i '/LIBTOOL_INSTALL/d' c++/Makefile.in
25 ./configure \
26 --with-shared \
27 --without-debug \
28 --without-ada \
29 --enable-widec \
30 --with-build-cc="gcc -D_GNU_SOURCE" \
31 --enable-pc-files \
32 --with-pkg-config-libdir=/usr/lib/pkgconfig \
33 $CONFIGURE_ARGS &&
34 make && make install
36 mkdir -p $install/lib
37 mv $install/usr/lib/libncursesw.so.6* $install/lib
38 ln -sf ../../lib/$(readlink $install/usr/lib/libncursesw.so) \
39 $install/usr/lib/libncursesw.so
41 for i in ncurses form panel menu; do
42 rm -f $install/usr/lib/lib$i.so
43 echo "INPUT(-l${i}w)" > $install/usr/lib/lib$i.so
44 chmod 755 $install/usr/lib/lib$i.so
45 ln -sf ${i}w.pc $install/usr/lib/pkgconfig/$i.pc
46 done
48 rm -f $install/usr/lib/libcursesw.so
49 echo "INPUT(-lncursesw)" > $install/usr/lib/libcursesw.so
50 chmod 755 $install/usr/lib/libcursesw.so
51 ln -sf libncurses.so $install/usr/lib/libcurses.so
53 mkdir -p $install/usr/share/doc/ncurses-$VERSION
54 cp -a doc/* $install/usr/share/doc/ncurses-$VERSION
56 # Fix F-keys in the terminal
57 for i in xterm xterm-256color; do
58 mv $install/usr/share/terminfo/x/$i $install/usr/share/terminfo/x/$i.orig
59 done
60 $install/usr/bin/tic $stuff/xterm-patched -o $install/usr/share/terminfo
61 ln -s xterm-256color $install/usr/share/terminfo/x/xterm
62 }
64 # Rules to gen a SliTaz package suitable for Tazpkg.
65 genpkg_rules()
66 {
67 case $PACKAGE in
68 ncurses)
69 copy clear tset reset libncursesw.so* tabset/ \
70 linux xterm xterm-256color
71 # ansi rxvt vt100 vt102* xterm-color xterm-new xterm-vt220
72 ;;
73 ncurses-libform)
74 copy libformw.so*
75 CAT="libs|forms extension"
76 DEPENDS="ncurses"
77 ;;
78 ncurses-libmenu)
79 copy libmenuw.so*
80 CAT="libs|menus extension"
81 DEPENDS="ncurses"
82 ;;
83 ncurses-libpanel)
84 copy libpanelw.so*
85 CAT="libs|panel stack extension"
86 DEPENDS="ncurses"
87 ;;
88 ncurses-extra)
89 copy @std
90 remove_already_packed
91 CAT="base-system|extra files"
92 DEPENDS="ncurses"
93 ;;
94 ncurses-dev)
95 copy @dev
96 ;;
97 esac
98 }