0
0
mirror of https://github.com/termux-pacman/glibc-packages.git synced 2024-11-13 13:59:21 +00:00
glibc-packages/gpkg/ncurses/build.sh
Max Ivan 6117f39013
update pkgs (#303)
gpkg/glib
gpkg/harfbuzz
gpkg/libwayland
gpkg/mesa
gpkg/ncurses
gpkg/subversion
gpkg/vulkan-headers
gpkg/vulkan-icd-loader
gpkg/vulkan-tools
gpkg/cmake
gpkg/libcurl
gpkg/libexpat
gpkg/libxcursor
gpkg/xtrans
gpkg/alsa-lib
2024-11-13 14:07:19 +03:00

51 lines
1.8 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://invisible-island.net/ncurses/ncurses.html
TERMUX_PKG_DESCRIPTION="System V Release 4.0 curses emulation library"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux-pacman"
_PKG_VERSION=6.5
_DATE_VERSION=20241102
TERMUX_PKG_VERSION=${_PKG_VERSION}.${_DATE_VERSION}
TERMUX_PKG_SRCURL=https://invisible-mirror.net/archives/ncurses/current/ncurses-${_PKG_VERSION}-${_DATE_VERSION}.tgz
TERMUX_PKG_SHA256=f64b30378ced2c091b5517b0fe72ee5456d59b26b0e6783efc33ba58b25cf7b8
TERMUX_PKG_DEPENDS="glibc, gcc-libs-glibc"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--disable-root-access
--disable-root-environ
--disable-setuid-environ
--enable-widec
--enable-pc-files
--mandir=$TERMUX_PREFIX/share/man
--with-cxx-binding
--with-cxx-shared
--with-manpage-format=normal
--with-pkg-config-libdir=$TERMUX_PREFIX/lib/pkgconfig
--with-shared
--with-versioned-syms
--with-xterm-kbs=del
--without-ada
"
termux_step_post_make_install() {
for lib in ncurses ncurses++ form panel menu; do
printf "INPUT(-l%sw)\n" "${lib}" > $TERMUX_PREFIX/lib/lib${lib}.so
ln -svf ${lib}w.pc $TERMUX_PREFIX/lib/pkgconfig/${lib}.pc
done
printf 'INPUT(-lncursesw)\n' > $TERMUX_PREFIX/lib/libcursesw.so
ln -svf libncurses.so $TERMUX_PREFIX/lib/libcurses.so
for lib in tic tinfo; do
printf "INPUT(libncursesw.so.%s)\n" "${_PKG_VERSION:0:1}" > $TERMUX_PREFIX/lib/lib${lib}.so
ln -svf libncursesw.so.${TERMUX_PKG_VERSION:0:1} $TERMUX_PREFIX/lib/lib${lib}.so.${_PKG_VERSION:0:1}
ln -svf ncursesw.pc $TERMUX_PREFIX/lib/pkgconfig/${lib}.pc
done
mkdir $TERMUX_PREFIX/include/ncurses
for i in $TERMUX_PREFIX/include/ncursesw/*; do
mv ${i} $TERMUX_PREFIX/include
ln -s ../${i##*/} $TERMUX_PREFIX/include/ncurses
ln -s ../${i##*/} $TERMUX_PREFIX/include/ncursesw
done
}