mirror of
https://codeberg.org/kiss-community/repo
synced 2025-01-26 09:35:01 -07:00
ncurses: Force non-wide ncurses lib to link against ncursesw (#131) @konimex
This commit is contained in:
parent
ec775efa95
commit
d1f4498837
@ -16,6 +16,18 @@
|
||||
make
|
||||
make DESTDIR="$1" install
|
||||
|
||||
# Force ncurses to link against wide-character ncurses library.
|
||||
for lib in ncurses form panel menu; do
|
||||
rm -f "$1/usr/lib/lib${lib}.so"
|
||||
printf '%s\n' "INPUT(-l${lib}w)" > "$1/usr/lib/lib${lib}.so"
|
||||
chmod 755 "$1/usr/lib/lib${lib}.so"
|
||||
ln -sf "lib${lib}w.a" "$1/usr/lib/lib${lib}.a"
|
||||
done
|
||||
|
||||
# Some packages look for libcurses instead of libncurses when building.
|
||||
printf '%s\n' "INPUT(-lncursesw)" > "$1/usr/lib/libcursesw.so"
|
||||
ln -s libncurses.so "$1/usr/lib/libcurses.so"
|
||||
|
||||
# These conflict with busybox's.
|
||||
rm -f "$1/usr/bin/clear"
|
||||
rm -f "$1/usr/bin/reset"
|
||||
|
@ -1 +1 @@
|
||||
6.1 1
|
||||
6.1 2
|
||||
|
Loading…
Reference in New Issue
Block a user