multitail: -Werror=implicit-function-declaration
[termux-packages] / packages / ncurses / build.sh
CommitLineData
59f0d218
FF
1TERMUX_PKG_HOMEPAGE=http://invisible-island.net/ncurses/
2TERMUX_PKG_DESCRIPTION="Library for text-based user interfaces in a terminal-independent manner"
469b1042 3_MAJOR_VERSION=6.0
86cb8449 4_MINOR_VERSION=20170610
59f0d218 5TERMUX_PKG_VERSION=${_MAJOR_VERSION}.${_MINOR_VERSION}
cbbf3196 6TERMUX_PKG_SRCURL=ftp://invisible-island.net/ncurses/current/ncurses-${_MAJOR_VERSION}-${_MINOR_VERSION}.tgz
86cb8449 7TERMUX_PKG_SHA256=4c196bd0f1bf0ce643c1547cc7fc25cee713d21299a660eeb9b5dfa8becacb45
59f0d218 8# --without-normal disables static libraries:
aaff9cad
FF
9TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
10ac_cv_header_locale_h=no
11--enable-const
12--enable-ext-colors
13--enable-ext-mouse
14--enable-overwrite
15--enable-pc-files
16--enable-widec
17--mandir=$TERMUX_PREFIX/share/man
18--without-ada
19--without-cxx-binding
20--without-debug
21--without-normal
22--without-static
23--without-tests
24--with-shared
25"
59f0d218
FF
26TERMUX_PKG_RM_AFTER_INSTALL="bin/ncursesw6-config share/man/man1/ncursesw6-config.1 bin/infotocap share/man/man1/infotocap.1m bin/captoinfo share/man/man1/captoinfo.1m"
27
59f0d218
FF
28termux_step_post_make_install () {
29 cd $TERMUX_PREFIX/lib
30 for lib in form menu ncurses panel; do
31 for file in lib${lib}w.so*; do
32 ln -s -f $file `echo $file | sed 's/w//'`
33 done
34 (cd pkgconfig && ln -s -f ${lib}w.pc `echo $lib | sed 's/w//'`.pc)
35 done
36
aed0f112
FF
37 # Some packages wants this:
38 cd $TERMUX_PREFIX/include/
39 rm -Rf ncursesw
40 mkdir ncursesw
41 cd ncursesw
42 ln -s ../{ncurses.h,termcap.h,panel.h,unctrl.h,menu.h,form.h,tic.h,nc_tparm.h,term.h,eti.h,term_entry.h,ncurses_dll.h,curses.h} .
59f0d218 43}
9ff2bc5d
FF
44
45termux_step_post_massage () {
46 # Strip away 30 years of cruft to decrease size.
86cb8449 47 local TI=$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/share/terminfo
9ff2bc5d 48 mv $TI $TERMUX_PKG_TMPDIR/full-terminfo
fc19ac86 49 mkdir -p $TI/{a,d,e,n,l,p,r,s,t,v,x}
9ff2bc5d 50 cp $TERMUX_PKG_TMPDIR/full-terminfo/a/ansi $TI/a/
85fba239
FF
51 cp $TERMUX_PKG_TMPDIR/full-terminfo/d/{dtterm,dumb} $TI/d/
52 cp $TERMUX_PKG_TMPDIR/full-terminfo/e/eterm-color $TI/e/
9ff2bc5d
FF
53 cp $TERMUX_PKG_TMPDIR/full-terminfo/n/nsterm $TI/n/
54 cp $TERMUX_PKG_TMPDIR/full-terminfo/l/linux $TI/l/
55 cp $TERMUX_PKG_TMPDIR/full-terminfo/p/putty{,-256color} $TI/p/
56 cp $TERMUX_PKG_TMPDIR/full-terminfo/r/rxvt{,-256color} $TI/r/
57 cp $TERMUX_PKG_TMPDIR/full-terminfo/s/screen{,2,-256color} $TI/s/
fc19ac86 58 cp $TERMUX_PKG_TMPDIR/full-terminfo/t/tmux{,-256color} $TI/t/
9ff2bc5d
FF
59 cp $TERMUX_PKG_TMPDIR/full-terminfo/v/{vt52,vt100,vt102} $TI/v/
60 cp $TERMUX_PKG_TMPDIR/full-terminfo/x/xterm{,-color,-new,-16color,-256color,+256color} $TI/x/
86cb8449
FF
61
62 local RXVT_TAR=$TERMUX_PKG_CACHEDIR/rxvt-unicode-9.22.tar.bz2
63 termux_download http://dist.schmorp.de/rxvt-unicode/rxvt-unicode-9.22.tar.bz2 \
64 $RXVT_TAR \
65 e94628e9bcfa0adb1115d83649f898d6edb4baced44f5d5b769c2eeb8b95addd
66 cd $TERMUX_PKG_TMPDIR
67 local TI_FILE=rxvt-unicode-9.22/doc/etc/rxvt-unicode.terminfo
68 tar xf $RXVT_TAR $TI_FILE
69 tic -x -o $TI $TI_FILE
9ff2bc5d 70}