# one‑liner: create the conf dir, extract the newest API version from the # .pc files inside $PKG, and write the ld.so.conf snippet mkdir -p "$PKG/etc/ld.so.conf.d" version=$(basename -s .pc "$PKG"/usr/lib${LIBDIRSUFFIX}/pkgconfig/libmutter-*.pc \ | sed 's/^libmutter-//' | sort -n | tail -1) cat > "$PKG/etc/ld.so.conf.d/mutter.conf" <