Skip to content

Commit

Permalink
fix(gpkg/ncurses): adding files to include (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxython authored Oct 9, 2023
1 parent ce8fd4c commit b7a8c1e
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions gpkg/ncurses/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ TERMUX_PKG_MAINTAINER="@termux-pacman"
_PKG_VERSION=6.4
_DATE_VERSION=20231001
TERMUX_PKG_VERSION=${_PKG_VERSION}.${_DATE_VERSION}
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://invisible-mirror.net/archives/ncurses/current/ncurses-${_PKG_VERSION}-${_DATE_VERSION}.tgz
TERMUX_PKG_SHA256=30b8dbe4800b07be5e852e8cb15fa4ffca30e112fa3a8b0e7c25777937d0ae6c
TERMUX_PKG_DEPENDS="glibc, gcc-libs-glibc"
Expand All @@ -29,15 +30,25 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
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 -sv ${lib}w.pc $TERMUX_PREFIX/lib/pkgconfig/${lib}.pc
ln -svf ${lib}w.pc $TERMUX_PREFIX/lib/pkgconfig/${lib}.pc
done

printf 'INPUT(-lncursesw)\n' > $TERMUX_PREFIX/lib/libcursesw.so
ln -sv libncurses.so $TERMUX_PREFIX/lib/libcurses.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 -sv libncursesw.so.${TERMUX_PKG_VERSION:0:1} $TERMUX_PREFIX/lib/lib${lib}.so.${_PKG_VERSION:0:1}
ln -sv ncursesw.pc $TERMUX_PREFIX/lib/pkgconfig/${lib}.pc
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
}

termux_step_post_massage() {
cd "$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/include" || exit 1
mv ncursesw/* .
mkdir ncurses
for _file in *.h; do
ln -s ../$_file ncurses
ln -s ../$_file ncursesw
done
}

0 comments on commit b7a8c1e

Please sign in to comment.