# The components a build needs (docs, clippy, rust-analyzer stay out),
# copied as install.sh would: it needs bash, the build root has none.
package() {
	mkdir -p "$DESTDIR$PREFIX"
	for c in rustc cargo rust-std-x86_64-unknown-linux-musl; do
		cp -a "$c/." "$DESTDIR$PREFIX/"
	done
	rm -f "$DESTDIR$PREFIX/manifest.in"
	rm -rf "$DESTDIR$PREFIX/share/doc" "$DESTDIR$PREFIX/etc"
}
