New comment by tornaria on void-packages repository https://github.com/void-linux/void-packages/pull/33006#issuecomment-922088123 Comment: Here different semantics for the move step: ``` set -- "$extractdir"/* if [ "$#" -eq 1 ] && [ -d "$1" ]; then mv -i "$1" -T "$wrksrc" || msg_error "$pkgver: failed to move '$1' to '$wrksrc'" else mkdir -p "$wrksrc" || msg_error "$pkgver: failed to create wrksrc.\n" mv -i "$@" -t "$wrksrc" || msg_error "$pkgver: failed to move '$extractdir/*' into '$wrksrc'" fi ``` More precisely: - if there's a single directory extracted, move that to XBPS_BUILDDIR renaming to `$wrksrc` - otherwise, move the whole tmpdir into XBPS_BUILDDIR with name `$wrksrc`.