Initial commit of LFS notes and scripts.
This commit is contained in:
43
lfs-scripts/ncurses.sh
Normal file
43
lfs-scripts/ncurses.sh
Normal file
@@ -0,0 +1,43 @@
|
||||
# Set the package we're building.
|
||||
package="ncurses-6.5"
|
||||
extension=".tar.gz"
|
||||
|
||||
# Decompress the source.
|
||||
echo "Unpacking ${package}${extension} ..."
|
||||
tar xvf ${package}${extension}
|
||||
|
||||
# Enter the unpacked sources.
|
||||
echo "Entering ${package} directory ..."
|
||||
cd ${package}
|
||||
|
||||
# LFS commands.
|
||||
./configure --prefix=/usr \
|
||||
--mandir=/usr/share/man \
|
||||
--with-shared \
|
||||
--without-debug \
|
||||
--without-normal \
|
||||
--with-cxx-shared \
|
||||
--enable-pc-files \
|
||||
--with-pkg-config-libdir=/usr/lib/pkgconfig
|
||||
make
|
||||
make DESTDIR=$PWD/dest install
|
||||
install -vm755 dest/usr/lib/libncursesw.so.6.5 /usr/lib
|
||||
rm -v dest/usr/lib/libncursesw.so.6.5
|
||||
sed -e 's/^#if.*XOPEN.*$/#if 1/' \
|
||||
-i dest/usr/include/curses.h
|
||||
cp -av dest/* /
|
||||
for lib in ncurses form panel menu ; do
|
||||
ln -sfv lib${lib}w.so /usr/lib/lib${lib}.so
|
||||
ln -sfv ${lib}w.pc /usr/lib/pkgconfig/${lib}.pc
|
||||
done
|
||||
ln -sfv libncursesw.so /usr/lib/libcurses.so
|
||||
cp -v -R doc -T /usr/share/doc/ncurses-6.5
|
||||
|
||||
|
||||
# Exit sources directory.
|
||||
echo "Exiting ${package} directory ..."
|
||||
cd ..
|
||||
|
||||
# Remove the directory of source files.
|
||||
echo "Removing ${package} directory ..."
|
||||
rm -rf ${package}
|
||||
Reference in New Issue
Block a user