How to compile app for Manjaro when repo is out of date

This may be badly placed as a post. I have gone with Newbie since I don't even think I am fully asking correctly, but if I find an answer others may gain from the pursuit.

I use my wonderful Manjaro Stable system to do work, and mostly mapping/GIS.

I use QGIS all the time.
I have installed it through paman and from a flat installation.
But the development is so frequent, and the stable updates so important to me, that I wish to be on the latest Stable release. Not only that, when a stable release happens, I get notified to update from within the program!

I go through the QGIS process which leads to downloads for many popular Linux Distros, including ArchLinux and Flatpak, but those always seem to be way behind in packages.
QGIS Downloads

If there is a way to reasonably learn how to package QGIS for Manjaro, I would like to start doing it, since I want it anyway.

Is there a step-by-step, or is someone willing to take me through the process of setting up to do this? Or is it too invasive for a Stable working system, or changes?

Thanx all!

Start here:

https://wiki.archlinux.org/index.php/Arch_Build_System

Read all of the related articles, too.

1 Like

I edited your post title as qgis is in the community repo, not the AUR. :wink: However, there is a bleeding-edge qgis-git package there.

1 Like

@Yochanan thank you for editing. I always hesitate to post because I know how much I don't know!

That said, I was only trying to point out that I knew I could go bleeding edge of git through AUR install, but even that, right now, is at:
qgis-git 3.9.0_master.r54615.7f95991edf-1
while the formal release of QGIS on their pages is 3.10, which has a very important feature for me to be using.

I will read the link(s) from @merlock as soon as I can, to see if I can be part of the solution at some point. I am nervouse, but hey! If I build it, and it works for me, it might work for others!

Thank you!

Don't hesitate, there's plenty of helpful folks here. We won't bite... much. :grin:

VCS packages always pull from the latest commit. These will be packages ending in -cvs , -svn , -hg , -darcs , -bzr , -git etc. At build time, the version will be regenerated based on the latest tag, revision and commit. If you build it right now, I imagine it will be something like 3.10_master.rXXXX...

Well, as much as I want/need some of the newer mapping options, I DO NOT want the bleeding edge. It sounds like, from what you have shared, if I go with the git, it will NOT be the latest Stable version, but whatever is being tested newer, right?

Thanx @Yochanan

Yes, you have it right that the git will just be whatever git is currently at

OK ..

So .. first - we are currently exactly where arch is:

https://www.archlinux.org/packages/?sort=&q=qgis&maintainer=&flagged=

https://manjaro32.org/repo-compare/community.html

Now .. if you want to avoid the git version, cant use the repo or upstream or development buils .. then you might want to build manually, out of the package manager. In which case you would follow the normal procedure and/or the instructions after downloading the version you want from the release page (read the readme):

Now if you want to make your own package (this would be better than just building manually as it would be recognized by your package management and such)
You would need to write a PKGBUILD that points to the right release (and works).
You may be able to do this rather trivially by just cannibalizing one of the existing pkgbuilds .. but it may also be more involved.

1 Like

Thanx @cscs.

I do want to build manually. I am not sure of the "normal procedure" but I will be looking.

@merlock gave me a link to read first, so i will start there.

But I would really like to start with a PKBUILD that I can cannibalize, but just as much to look and understand what is happening in there.

So, are you saying I could take a PKGBUILD from somewhere that is working for installing a previous version, from somewhere? I will look for that.

This may be beyond me, but I won't know until I try!

Any other suggestions to get me started?

UPDATE: I was curious how you got to the git where the stable releases were, so I started at QGIS to see where that led, and I got to here:
https://qgis.org/en/site/forusers/download.html

... and then cllicking on sources? which offers to download a .bz2 file. This leaves me a little confused as to where I should go. Sorry for the question BEFORE reading thoroughly. Just excited.

I would probably start with this one:

https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=qgis-git

Then mainly - replace a few things like

name as something like qgis-310-final
the (first) defining pkgver line with something like 3.10-final
remove the _pkgver lines and the second pkgver lines (and the code after it)
and point the source directly to your release
..and maybe a few more ?

I already pointed you to releases:
https://github.com/qgis/QGIS/releases/

When I follow QGIS it leads me to this, which is different than the page you listed. I also tried to just go to git and search for QGIS, and again I got the one that QGIS page points to.

So, how did you get to the page you suggested previously? Just really curious.

Thanx

Thanx @cscs

I just searched for the project source (and it is apparently hosted on github) and went to the 'releases' page :wink:

(as it was the same source mentioned in pkgbuilds, has 3.1k stars, is a 'sponsor' and is from team/user qgis .. I felt pretty confident I had the 'true' source [sometimes you must be careful with this .. that you are not taking from a random 'same-named' fork from someone else, or worse, something malicious])

Wow! This is cool, and it appears something I could MAYBE figure out and do.

Thanx again @cscs

I also saw this with interest:
https://repology.org/project/qgis/versions

Forum kindly sponsored by