userspace
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* ncurses — terminal handling library + terminfo database.
|
||||
*
|
||||
* Built wide-char (ncurses 6.x default) with --with-termlib so the
|
||||
* terminal-capability code is split into libtinfow. The narrow names
|
||||
* (libncurses, libtinfo, ...) are symlinked to the wide libs — the
|
||||
* standard distro arrangement — so consumers linking -lncurses/-ltinfo
|
||||
* resolve to the wide implementations (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} --with-termlib
|
||||
make -j${jobs}
|
||||
}
|
||||
|
||||
install {
|
||||
make DESTDIR=${destdir} install
|
||||
ln -sf libncursesw.a ${destdir}/usr/lib/libncurses.a
|
||||
ln -sf libtinfow.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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user