Since the source file (b2-linux) has the same name even though the file changes with each version, makepkg won't redownload it and the integrity change will fail. I think this is the reason for all the comments. I don't know of any workaround besides deleting the old b2-linux file.
Could you change the destination file to b2-linux-$pkgver to avoid this? E.g.
source=("b2-linux-${pkgver}"::"${url}/releases/download/v${pkgver}/b2-linux")
and update prepare() and package() accordingly.
Pinned Comments
Amolith commented on 2024-03-14 15:06 (UTC) (edited on 2024-03-14 15:06 (UTC) by Amolith)
@jcf I changed the installation directory so it should work now.
/usr/bin/b2
is provided by theboost
package in extra, so I named this binarybbb2
to avoid the conflict.