lfs-buildscripts/CH8Build/CH08.55-meson.sh

37 lines
744 B
Bash
Raw Normal View History

2024-10-06 17:01:29 +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 17:01:29 +08:00
[ -d meson-${meson_version} ] && rm -rf meson-${meson_version}
tar -zxf ${meson_tarball}
cd meson-${meson_version}
pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD
if [ $? -ne 0 ]; then
myfail "Failed building meson"
fi
pip3 install --no-index --find-links dist meson
if [ $? -ne 0 ]; then
myfail "Failed installing meson"
fi
install -Dm644 data/shell-completions/bash/meson /usr/share/bash-completion/completions/meson
install -Dm644 data/shell-completions/zsh/_meson /usr/share/zsh/site-functions/_meson
2024-10-08 14:25:15 +08:00
popd
# cleanup
pushd $GLSOURCES
rm -rf meson-${meson_version}
popd