You are not logged in.
I've wanted to build qt5-declarative-git from AUR. makepkg is supposed to checkout the 5.15 branch but it always checks out the dev branch. Can somebody tell me what's wrong? Is there something wrong with the PKGBUILD or is there a bug in makepkg?
Last edited by BertiBoeller (2020-11-12 13:28:55)
Offline
makepkg is supposed to checkout the 5.15 branch
What makes you think that? It's a -git package, it's meant to check out the latest version.
Offline
The bare checkout in $pkgdir/package_name will always point to the default branch. makepkg will checkout the correct branch when it clones the sources into the $srcdir/package_name folder.
Offline
source=("git+https://code.qt.io/qt/qtdeclarative.git#branch=5.15")
BertiBoeller, the PKGBUILD will actually build the correct version. If you do `git show` within the source directory, you will see that the `makepkg` branch is the same as the `origin/5.15` branch.
The problem is that the pkgver() function returns a bogus version information because… it does awkward things. I don't know what the correct way to do it is, but it simply lists all known tags and picks the latest one, regardless of which branch it currently is in.
Offline