ffmpeg: Build with --enable-gnutls
[termux-packages] / packages / ncurses / build.sh
1 TERMUX_PKG_HOMEPAGE=http://invisible-island.net/ncurses/
2 TERMUX_PKG_DESCRIPTION="Library for text-based user interfaces in a terminal-independent manner"
3 _MAJOR_VERSION=6.0
4 _MINOR_VERSION=20170610
5 TERMUX_PKG_VERSION=${_MAJOR_VERSION}.${_MINOR_VERSION}
6 TERMUX_PKG_SRCURL=ftp://invisible-island.net/ncurses/current/ncurses-${_MAJOR_VERSION}-${_MINOR_VERSION}.tgz
7 TERMUX_PKG_SHA256=4c196bd0f1bf0ce643c1547cc7fc25cee713d21299a660eeb9b5dfa8becacb45
8 # --without-normal disables static libraries:
9 TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-overwrite --enable-const --without-cxx-binding --without-normal --without-static --with-shared --without-debug --enable-widec --enable-ext-colors --enable-ext-mouse --enable-pc-files --with-pkg-config-libdir=$PKG_CONFIG_LIBDIR --without-ada --without-tests --mandir=$TERMUX_PREFIX/share/man ac_cv_header_locale_h=no"
10 TERMUX_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"
11
12 termux_step_post_make_install () {
13 cd $TERMUX_PREFIX/lib
14 for lib in form menu ncurses panel; do
15 for file in lib${lib}w.so*; do
16 ln -s -f $file `echo $file | sed 's/w//'`
17 done
18 (cd pkgconfig && ln -s -f ${lib}w.pc `echo $lib | sed 's/w//'`.pc)
19 done
20
21 # Some packages wants this:
22 cd $TERMUX_PREFIX/include/
23 rm -Rf ncursesw
24 mkdir ncursesw
25 cd ncursesw
26 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} .
27 }
28
29 termux_step_post_massage () {
30 # Strip away 30 years of cruft to decrease size.
31 local TI=$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/share/terminfo
32 mv $TI $TERMUX_PKG_TMPDIR/full-terminfo
33 mkdir -p $TI/{a,d,e,n,l,p,r,s,t,v,x}
34 cp $TERMUX_PKG_TMPDIR/full-terminfo/a/ansi $TI/a/
35 cp $TERMUX_PKG_TMPDIR/full-terminfo/d/{dtterm,dumb} $TI/d/
36 cp $TERMUX_PKG_TMPDIR/full-terminfo/e/eterm-color $TI/e/
37 cp $TERMUX_PKG_TMPDIR/full-terminfo/n/nsterm $TI/n/
38 cp $TERMUX_PKG_TMPDIR/full-terminfo/l/linux $TI/l/
39 cp $TERMUX_PKG_TMPDIR/full-terminfo/p/putty{,-256color} $TI/p/
40 cp $TERMUX_PKG_TMPDIR/full-terminfo/r/rxvt{,-256color} $TI/r/
41 cp $TERMUX_PKG_TMPDIR/full-terminfo/s/screen{,2,-256color} $TI/s/
42 cp $TERMUX_PKG_TMPDIR/full-terminfo/t/tmux{,-256color} $TI/t/
43 cp $TERMUX_PKG_TMPDIR/full-terminfo/v/{vt52,vt100,vt102} $TI/v/
44 cp $TERMUX_PKG_TMPDIR/full-terminfo/x/xterm{,-color,-new,-16color,-256color,+256color} $TI/x/
45
46 local RXVT_TAR=$TERMUX_PKG_CACHEDIR/rxvt-unicode-9.22.tar.bz2
47 termux_download http://dist.schmorp.de/rxvt-unicode/rxvt-unicode-9.22.tar.bz2 \
48 $RXVT_TAR \
49 e94628e9bcfa0adb1115d83649f898d6edb4baced44f5d5b769c2eeb8b95addd
50 cd $TERMUX_PKG_TMPDIR
51 local TI_FILE=rxvt-unicode-9.22/doc/etc/rxvt-unicode.terminfo
52 tar xf $RXVT_TAR $TI_FILE
53 tic -x -o $TI $TI_FILE
54 }