2025-11-24 10:36:57 -05:00

30 lines
882 B
RPMSpec

# Maintainer: Alexander Hill <ahill@breadpudding.dev>
SRC_HASH="136d91bc269a9a5785e5f9e980bc76ab57428f604ce3e5a5a90cebc767971cc6"
SRC_NAME="ncurses"
SRC_URL="https://invisible-island.net/archives/ncurses/ncurses-6.5.tar.gz"
SRC_VERSION="6.5"
build() {
tar xf ../$SRC_FILENAME
cd ncurses-*/
./configure $TT_AUTOCONF_COMMON \
--with-cxx-shared \
--with-shared \
--without-ada \
--without-normal \
--without-tests
make -O -j $TT_PROCS
}
clean() {
rm -rf ncurses-*/
}
package() {
cd ncurses-*/
make -O -j $TT_PROCS install DESTDIR=$TT_INSTALLDIR
# NOTE: These symlinks exist for compatibility's sake, since some libraries
# will only look for "ncurses" and not "ncursesw". ~ahill
ln -s libncursesw.so $TT_INSTALLDIR/lib/libncurses.so
ln -s libncurses++w.so $TT_INSTALLDIR/lib/libncurses++.so
}