44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
# Description: A System V Release 4.0 curses emulation library
|
|
# URL: https://invisible-island.net/ncurses/announce.html
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
|
|
name=ncurses
|
|
version=6.5
|
|
release=1
|
|
source=(https://invisible-mirror.net/archives/$name/$name-$version.tar.gz)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
./configure --prefix=/usr \
|
|
--mandir=/usr/share/man \
|
|
--with-{normal,shared} \
|
|
--without-{debug,ada,tests} \
|
|
--enable-pc-files \
|
|
--with-pkg-config-libdir=/usr/lib/pkgconfig \
|
|
--enable-widec
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
install -d $PKG/lib
|
|
|
|
# move library to /lib and create symlinks
|
|
mv $PKG/usr/lib/libncursesw.so.* $PKG/lib
|
|
ln -sf ../../lib/libncursesw.so.$version $PKG/usr/lib/libncursesw.so
|
|
ln -s libncursesw.so.$version $PKG/lib/libncurses.so.${version%%.*}
|
|
|
|
# linker scripts and .pc files for non-wide ncurses
|
|
for LIB in ncurses form panel menu ; do
|
|
echo "INPUT(-l${LIB}w)" > $PKG/usr/lib/lib${LIB}.so
|
|
ln -s ${LIB}w.pc $PKG/usr/lib/pkgconfig/${LIB}.pc
|
|
done
|
|
|
|
# provided by contrib/foot-terminfo
|
|
rm -r $PKG/usr/share/terminfo/f/foot{,-direct}
|
|
|
|
# linker script for the curses library
|
|
echo "INPUT(-lncursesw)" > $PKG/usr/lib/libcursesw.so
|
|
ln -s libncurses.so $PKG/usr/lib/libcurses.so
|
|
}
|