mirror of
https://github.com/YellowJacketLinux/lfs-buildscripts.git
synced 2025-02-03 07:17:18 +08:00
27 lines
669 B
Bash
27 lines
669 B
Bash
|
#!/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
|