Files
lfs/lfs-scripts/expat.sh
2025-01-20 15:44:57 -05:00

27 lines
659 B
Bash

# Set the package we're building.
package="expat-2.6.2"
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 \
--disable-static \
--docdir=/usr/share/doc/expat-2.6.2
make && make check && make install
install -v -m644 doc/*.{html,css} /usr/share/doc/expat-2.6.2
# Exit sources directory.
echo "Exiting ${package} directory ..."
cd ..
# Remove the directory of source files.
echo "Removing ${package} directory ..."
rm -rf ${package}