You are not logged in.
Right now, makepkg doesn't redownload the source when the version number changes and as a result, I am getting a validity error. How do you fix this?
Last edited by desperado (2020-12-03 14:43:27)
Offline
-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")
Last edited by schard (2020-12-03 13:36:33)
Inofficial first vice president of the Rust Evangelism Strike Force
Offline
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?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
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.
Last edited by desperado (2020-12-03 14:30:01)
Offline
It seems you missed the big red warning box here:
https://wiki.archlinux.org/index.php/PKGBUILD#Sources
(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)
Last edited by Trilby (2020-12-03 14:51:33)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline