New comment by Chocimier on void-packages repository https://github.com/void-linux/void-packages/pull/21183#issuecomment-621414021 Comment: > I finally managed to make xbps-src move the needed files correctly without any sort of hack. They aren't cleaned, however. xbps-src removes wrksrc after build. Here, when two archives are extracted, files from second are outside of wrksrc, so they aren't cleaned. This can be fixed by setting `create_wrksrc=yes` and following post-extract, so all files are extracted into wrksrc, then files from first tarball are moved one dir up into expected place. (I missed that second tarball breaks convention of having top-level dir.) ``` post_extract() { mv "ccl-${version}"/* . } ``` Please also indent multiline variables by one space.