smlinux/base/ncurses/smbuild
PktSurf da8cda2080 Switched from netbsd-curses to ncurses in base.
Upgraded base/readline from 6.3 to 8.2.13
Added scdoc 1.11.3, a documentation dependency for base/kmod to base
2025-04-03 20:36:25 +05:30

68 lines
1.6 KiB
Bash

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=ncurses
version=6.5
build=1sml
homepage="https://slackware.uk/slackware/slackware-current/source/l/ncurses"
download="https://slackware.uk/slackware/slackware-current/source/l/ncurses/ncurses-6.5.tar.lz"
desc="The accursed ncurses library"
requires="gcc-libs"
preservestaticlibs=1
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
}
build() {
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--enable-widec \
--disable-termcap \
--disable-root-access \
--disable-rpath-hack \
--with-cxx-binding \
--with-cxx-shared \
--with-shared \
--enable-symlinks \
--enable-pc-files \
--without-ada \
--with-pkg-config-libdir=/usr/lib/pkgconfig \
--program-suffix="" \
--program-prefix=""
make
make install DESTDIR="$pkg"
(
cd $pkg
# force link against *w.so
local lib
for lib in ncurses ncurses++ form panel menu; do
ln -s ${lib}w.pc usr/lib/pkgconfig/$lib.pc
ln -s lib${lib}w.a usr/lib/lib$lib.a
ln -s lib${lib}w.so usr/lib/lib$lib.so
done
# link curses, tic, tinfo -> ncurses
for lib in curses tic tinfo; do
ln -s libncurses.a usr/lib/lib${lib}.a
ln -s libncurses.so usr/lib/lib${lib}.so
ln -s ncurses.pc usr/lib/pkgconfig/${lib}.pc
done
ln -s libncursesw.so usr/lib/libcursesw.so
)
cp COPYING $pkgdocs/
mkfinalpkg
}
sha512sums="
dde1ac89b8e4649329b767c02fb795793f757fc93f28a62dac8b761dc93fe79482439b0ff956e0de462a8b52357080074e601bd11eaeafd7b0222e211e1fed58 ncurses-6.5.tar.lz
"