You are not logged in.
By considering a PKGBUILD with a git source, like the following:
pkgname=name
pkgver=165.8f9bd4a
pkgrel=1
pkgdesc="Some descr."
arch=('x86_64' 'aarch64')
url="https://github.com/owner/${pkgname}"
license=('GPL3')
depends=()
makedepends=('git')
source=("git+https://github.com/owner/$pkgname.git")
sha512sums=('SKIP')
pkgver() {
cd $pkgname
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
...
is there a way to just update the "pkgver" to the latest git commit value without running the package building by makepkg?
I tried to use "updpkgsums" but not working for this purpose.
Offline
You can use the ..nobuild / -o option, maybe with --nodeps / -d
makepkg -do
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
You can use the ..nobuild / -o option, maybe with --nodeps / -d
makepkg -do
Thank you for the answer. The command seems to update the pkgver, but it still downloads the source from git repo. Is there an option to prevent to download the source?
Offline
If you don't acquire the source, there'd be no git repo from which to derive the pkgver.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Oh yes. True. Since makepkg downloads the git source, is there a way to automatically delete this downloaded folder after the process finishes?
Last edited by D3vil0p3r (2024-03-10 19:35:25)
Offline
That depends. Is there a way for you to read the man page?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Why would you want to do that anyways? If you are an AUR maintainer for that PKGBUILD, then you should not push mere pkgver updates to the AUR and if more has changed you should run a test build first.
https://wiki.archlinux.org/title/AUR_su … ge_content
Do not commit mere pkgver bumps for VCS packages. They are not considered out of date when the upstream has new commits. Only do a new commit when other changes are introduced, such as changing the build process.
Last edited by progandy (2024-03-10 21:37:23)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
That depends. Is there a way for you to read the man page?
Already done and no useful info about that. Tried with clean argument with no result.
Last edited by D3vil0p3r (2024-03-10 21:38:19)
Offline