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

27 lines
669 B
Bash
Raw Normal View History

2024-10-06 17:01:29 +08:00
#!/bin/bash
source versions.sh
GLSOURCES="/sources"
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -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