(Admittedly, the context in the wiki is a source file with a version and no package name, but it applies just the same when it has the package name and no version)
]]>The short-sighted answer is to delete the existing downloaded source. But if what you claim is really happening, the PKGBUILD should be fixed. What package is this?
It's just a little test package I've written.
Are you talking about a VCS package?
I'm picking it from the releases (so no VCS I guess). Think of it like this:
source=("${url}/${pkgname}.tar.gz")
The source doesn't have a version appended to the name. This must be why the source isn't getting downloaded.
]]>-C, --cleanbuild
Remove the $srcdir before building the package.
Update
Are you talking about a VCS package?
Because non-VCS packages should have the source point to a specific release.
Otherwise if you do something like
source=("${pkgname}::git+${url}/${pkgname}-${pkgver}.tar.gz")
It will not re-download the source, if the file exists.
You can circumvent this issue by appending the respective version to the file:
source=("${pkgname}-${pkgver}::git+${url}/${pkgname}-${pkgver}.tar.gz")