lfs-buildscripts/CH8Build/CH08.43-Intltool.sh

44 lines
789 B
Bash
Raw Normal View History

2024-10-06 04:57: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-06 04:57:41 +08:00
[ -d intltool-${intltool_version} ] && rm -rf intltool-${intltool_version}
tar -zxf ${intltool_tarball}
cd intltool-${intltool_version}
sed -i 's:\\\${:\\\$\\{:' intltool-update.in
./configure --prefix=/usr
make
if [ $? -ne 0 ]; then
myfail "Failed building intltool"
fi
2024-10-09 09:50:04 +08:00
if [ ! -f ${GLSOURCES}/SKIPTESTS ]; then
echo "running intltool make check"
make check > ${GLSOURCES}/intltool.check.log 2>&1
fi
2024-10-06 04:57:41 +08:00
make install
if [ $? -ne 0 ]; then
myfail "Failed installing intltool"
fi
2024-10-08 14:25:15 +08:00
install -Dm644 doc/I18N-HOWTO /usr/share/doc/intltool-${intltool_version}/I18N-HOWTO
2024-10-06 04:57:41 +08:00
2024-10-08 14:25:15 +08:00
popd
# cleanup
pushd $GLSOURCES
rm -rf intltool-${intltool_version}
popd