# Description: System V Release 4.0 curses emulation library # URL: https://invisible-island.net/ncurses/ncurses.html # Maintainer: KRAK3N Team, core ports at krak3n dot my 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 \ --sysconfdir=/etc \ --localstatedir=/var \ --libdir=/usr/lib \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ --without-debug \ --with-shared \ --without-normal \ --with-cxx-shared \ --enable-pc-files \ --enable-widec \ --with-pkg-config-libdir=/usr/lib/pkgconfig make make DESTDIR=$PKG install # Create libtinfo symlinks. ln -sf libncursesw.so $PKG/usr/lib/libtinfo.so ln -sf libncursesw.so.${version} $PKG/usr/lib/libtinfo.so.${version} ln -sf libtinfo.so.${version} $PKG/usr/lib/libtinfo.so.6 ln -sf ncursesw.pc $PKG/usr/lib/pkgconfig/tinfo.pc for lib in ncurses form panel menu ; do rm -vf $PKG/usr/lib/lib${lib}.so echo "INPUT(-l${lib}w)" > $PKG/usr/lib/lib${lib}.so ln -sfv ${lib}w.pc $PKG/usr/lib/pkgconfig/${lib}.pc done rm -vf $PKG/usr/lib/libcursesw.so echo "INPUT(-lncursesw)" > $PKG/usr/lib/libcursesw.so ln -sfv libncurses.so $PKG/usr/lib/libcurses.so }