Checksum in middle of APKBUILD causes issues
As mentioned in this issue: https://github.com/alpinelinux/abuild/commit/75b8cacaf0468470c502314560a436b80b7fe9af
newapkbuild is putting checksums in the middle of APKBUILD files. I just noticed a strange issue, after generating a package with newapkbuild (and it inserting the checksums in the middle of the file), adding a patch, and then running “abuild checksum”, multiple lines got deleted from the middle of my APKBUILD. This included the entire prepare() section, up to the first line of the build() section.
Maybe the proper solution in the above commit was to move the “unpack” down to the “checksum” line? Regardless, there’s some strange issues inside of abuild that caused this to happen in the first place, and it should probably be investigated further.
(from redmine: issue id 9061, created on 2018-07-06)