43 lines
1.5 KiB
Plaintext
43 lines
1.5 KiB
Plaintext
/*
|
|
* ncurses — terminal handling library + terminfo database.
|
|
*
|
|
* Wide-char default (ncurses 6.x). Deliberately WITHOUT --with-termlib:
|
|
* keeping the termcap functions (tgetent & co) inside libncursesw lets
|
|
* consumers link just -lncurses (vim does exactly this). The narrow
|
|
* names (libncurses, libtinfo, ...) are symlinked to the wide lib — the
|
|
* standard distro arrangement — so -ltinfo consumers (readline) resolve
|
|
* to the same archive (symbols are compatible).
|
|
*/
|
|
package "ncurses" {
|
|
const version = "6.6"
|
|
const source = "https://ftp.gnu.org/gnu/ncurses/ncurses-${version}.tar.gz"
|
|
sha256 = "355b4cbbed880b0381a04c46617b7656e362585d52e9cf84a67e2009b749ff11"
|
|
license = "MIT"
|
|
|
|
provides = ["libncurses.a", "libtinfo.a", "terminfo"]
|
|
|
|
depends = [
|
|
{ name = "make" },
|
|
]
|
|
|
|
prepare {
|
|
curl -L -o ncurses-${version}.tar.gz ${source}
|
|
echo "355b4cbbed880b0381a04c46617b7656e362585d52e9cf84a67e2009b749ff11 ncurses-${version}.tar.gz" | sha256sum -c -
|
|
tar xf ncurses-${version}.tar.gz --strip-components=1
|
|
}
|
|
|
|
build {
|
|
./configure --prefix=${prefix}
|
|
make -j${jobs}
|
|
}
|
|
|
|
install {
|
|
make DESTDIR=${destdir} install
|
|
ln -sf libncursesw.a ${destdir}/usr/lib/libncurses.a
|
|
ln -sf libncursesw.a ${destdir}/usr/lib/libtinfo.a
|
|
ln -sf libpanelw.a ${destdir}/usr/lib/libpanel.a
|
|
ln -sf libmenuw.a ${destdir}/usr/lib/libmenu.a
|
|
ln -sf libformw.a ${destdir}/usr/lib/libform.a
|
|
}
|
|
}
|