Commit | Line | Data |
---|---|---|
59f0d218 FF |
1 | TERMUX_PKG_HOMEPAGE=http://invisible-island.net/ncurses/ |
2 | TERMUX_PKG_DESCRIPTION="Library for text-based user interfaces in a terminal-independent manner" | |
3f0e669f FF |
3 | TERMUX_PKG_VERSION=6.0.20170923 |
4 | TERMUX_PKG_SHA256=678a3549b144fd9ce00d5687d70eb8dd4352309f41790bdd0e7a4d94ade3361e | |
408001f3 | 5 | TERMUX_PKG_SRCURL=http://invisible-mirror.net/archives/ncurses/current/ncurses-${TERMUX_PKG_VERSION:0:3}-${TERMUX_PKG_VERSION:4}.tgz |
59f0d218 | 6 | # --without-normal disables static libraries: |
aaff9cad FF |
7 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" |
8 | ac_cv_header_locale_h=no | |
9 | --enable-const | |
10 | --enable-ext-colors | |
11 | --enable-ext-mouse | |
12 | --enable-overwrite | |
13 | --enable-pc-files | |
14 | --enable-widec | |
15 | --mandir=$TERMUX_PREFIX/share/man | |
16 | --without-ada | |
17 | --without-cxx-binding | |
18 | --without-debug | |
19 | --without-normal | |
20 | --without-static | |
21 | --without-tests | |
22 | --with-shared | |
23 | " | |
0411bce9 | 24 | TERMUX_PKG_INCLUDE_IN_DEVPACKAGE=" |
1a580cee | 25 | share/man/man1/ncursesw6-config.1* |
0411bce9 S |
26 | bin/ncursesw6-config |
27 | " | |
2e27b20c FF |
28 | TERMUX_PKG_RM_AFTER_INSTALL=" |
29 | bin/captoinfo | |
30 | bin/infotocap | |
1a580cee FF |
31 | share/man/man1/captoinfo.1* |
32 | share/man/man1/infotocap.1* | |
33 | share/man/man5 | |
34 | share/man/man7 | |
2e27b20c FF |
35 | " |
36 | ||
37 | termux_step_pre_configure() { | |
38 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --with-pkg-config-libdir=$PKG_CONFIG_LIBDIR" | |
39 | } | |
59f0d218 | 40 | |
59f0d218 FF |
41 | termux_step_post_make_install () { |
42 | cd $TERMUX_PREFIX/lib | |
43 | for lib in form menu ncurses panel; do | |
44 | for file in lib${lib}w.so*; do | |
45 | ln -s -f $file `echo $file | sed 's/w//'` | |
46 | done | |
47 | (cd pkgconfig && ln -s -f ${lib}w.pc `echo $lib | sed 's/w//'`.pc) | |
48 | done | |
49 | ||
aed0f112 FF |
50 | # Some packages wants this: |
51 | cd $TERMUX_PREFIX/include/ | |
52 | rm -Rf ncursesw | |
53 | mkdir ncursesw | |
54 | cd ncursesw | |
55 | 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 | 56 | } |
9ff2bc5d FF |
57 | |
58 | termux_step_post_massage () { | |
59 | # Strip away 30 years of cruft to decrease size. | |
86cb8449 | 60 | local TI=$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/share/terminfo |
9ff2bc5d | 61 | mv $TI $TERMUX_PKG_TMPDIR/full-terminfo |
fc19ac86 | 62 | mkdir -p $TI/{a,d,e,n,l,p,r,s,t,v,x} |
9ff2bc5d | 63 | cp $TERMUX_PKG_TMPDIR/full-terminfo/a/ansi $TI/a/ |
85fba239 FF |
64 | cp $TERMUX_PKG_TMPDIR/full-terminfo/d/{dtterm,dumb} $TI/d/ |
65 | cp $TERMUX_PKG_TMPDIR/full-terminfo/e/eterm-color $TI/e/ | |
9ff2bc5d FF |
66 | cp $TERMUX_PKG_TMPDIR/full-terminfo/n/nsterm $TI/n/ |
67 | cp $TERMUX_PKG_TMPDIR/full-terminfo/l/linux $TI/l/ | |
68 | cp $TERMUX_PKG_TMPDIR/full-terminfo/p/putty{,-256color} $TI/p/ | |
69 | cp $TERMUX_PKG_TMPDIR/full-terminfo/r/rxvt{,-256color} $TI/r/ | |
70 | cp $TERMUX_PKG_TMPDIR/full-terminfo/s/screen{,2,-256color} $TI/s/ | |
fc19ac86 | 71 | cp $TERMUX_PKG_TMPDIR/full-terminfo/t/tmux{,-256color} $TI/t/ |
9ff2bc5d FF |
72 | cp $TERMUX_PKG_TMPDIR/full-terminfo/v/{vt52,vt100,vt102} $TI/v/ |
73 | cp $TERMUX_PKG_TMPDIR/full-terminfo/x/xterm{,-color,-new,-16color,-256color,+256color} $TI/x/ | |
86cb8449 FF |
74 | |
75 | local RXVT_TAR=$TERMUX_PKG_CACHEDIR/rxvt-unicode-9.22.tar.bz2 | |
76 | termux_download http://dist.schmorp.de/rxvt-unicode/rxvt-unicode-9.22.tar.bz2 \ | |
77 | $RXVT_TAR \ | |
78 | e94628e9bcfa0adb1115d83649f898d6edb4baced44f5d5b769c2eeb8b95addd | |
79 | cd $TERMUX_PKG_TMPDIR | |
80 | local TI_FILE=rxvt-unicode-9.22/doc/etc/rxvt-unicode.terminfo | |
81 | tar xf $RXVT_TAR $TI_FILE | |
82 | tic -x -o $TI $TI_FILE | |
9ff2bc5d | 83 | } |