lfs-buildscripts/CH8Build/CH08.38-expat.sh

45 lines
760 B
Bash
Raw Normal View History

2024-10-05 17:08:41 +08:00
#!/bin/bash
source versions.sh
GLSOURCES="/sources"
2024-10-09 09:50:04 +08:00
pushd ${GLSOURCES} > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
2024-10-05 17:08:41 +08:00
[ -d expat-${expat_version} ] && rm -rf expat-${expat_version}
tar -Jxf ${expat_tarball}
cd expat-${expat_version}
./configure --prefix=/usr \
--disable-static \
--docdir=/usr/share/doc/expat-${expat_version}
make
if [ $? -ne 0 ]; then
myfail "Failed building expat"
fi
2024-10-09 09:50:04 +08:00
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running expat make check"
make check > ${GLSOURCES}/expat.check.log 2>&1
fi
2024-10-05 17:08:41 +08:00
make install
if [ $? -ne 0 ]; then
myfail "Failed installing expat"
fi
2024-10-08 14:25:15 +08:00
install -m644 doc/*.{html,css} /usr/share/doc/expat-${expat_version}
2024-10-05 17:08:41 +08:00
2024-10-08 14:25:15 +08:00
popd
# cleanup
pushd $GLSOURCES
rm -rf expat-${expat_version}
popd