mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-21 14:50:07 -07:00
35dddd70ea
closes #205
37 lines
1.0 KiB
Bash
Executable File
37 lines
1.0 KiB
Bash
Executable File
#!/bin/sh -e
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--mandir=/usr/share/man \
|
|
--enable-pc-files \
|
|
--disable-rpath-hack \
|
|
--with-pkg-config-libdir=/usr/lib/pkgconfig \
|
|
--with-shared \
|
|
--with-termlib \
|
|
--enable-widec \
|
|
--without-ada \
|
|
--without-tests \
|
|
--without-debug \
|
|
--without-cxx-binding
|
|
|
|
make
|
|
make DESTDIR="$1" install
|
|
|
|
# Force ncurses to link against wide-character ncurses library.
|
|
for lib in ncurses form panel menu tinfo; 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"
|
|
ln -sf "lib${lib}w.so.6" "$1/usr/lib/lib${lib}.so.6"
|
|
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"
|
|
|
|
# Fix pkgconfig files.
|
|
for lib in ncurses form panel menu tinfo; do
|
|
ln -s "${lib}w.pc" "$1/usr/lib/pkgconfig/${lib}.pc"
|
|
done
|