* Mike Gabriel <sunwea...@debian.org> [2024-04-03 10:00]: > > On Tuesday, April 2, 2024 8:22:26 AM MST Mike Gabriel wrote: > > > https://salsa.debian.org/debian-ayatana-team/appmenu-gtk-module/-/blob/ > > master/ > > > debian/watch > > > > > > ``` > > > version=3 > > > https://gitlab.com/vala-panel-project/vala-panel-appmenu/-/tags/?([\d\.]+) > > > .*/uploads/.*/appmenu-gtk-module-?([\d\.]+)\.tar\.xz > > > ``` > > > > > > The above used to successfully download the appmenu-gtk-module tarball > > > from the vala-panel-appmenu releases page: > > > https://gitlab.com/vala-panel-project/vala-panel-appmenu/-/releases > > > > Try the attached watch file. > > This works for vala-panel-appmenu, but not for appmenu-gtk-module. The > packaging of vala-panel-appmenu, appmenu-gtk-module and appmenu-registrar is > a bit special, because all three packages get built from the same source > code tree. [...] > The appmenu-gtk-module code is a subfolder in upstream vala-panel-appmenu > (subprojects/appmenu-gtk-module) and that subfolder was packaged as a > separate src:pkg in Debian at the time when it got introduced. > > For this the upstream maintainer provides appmenu-gtk-module as a separate > tarball for download at [1]. > > So the watch file should achieve downloading this exact tarball, i.e. > https://gitlab.com/vala-panel-project/vala-panel-appmenu/uploads/6c0332e34c41e99de5a1db1fc4239de2/appmenu-gtk-module-24.02.tar.xz > > Only chew on this if you really want to nut-crack it. I have burnt quite a > few brain cells on it yesterday and failed (which does not mean you will > also, but be warned, the solution does not seem trivial, however, maybe it > is).
GitLab asset download URLs are a bit of a mess, but the attached watch file seems to give me that exact URL. - Fay
version=4 opts="searchmode=plain,downloadurlmangle=s!uploads!vala-panel-project/vala-panel-appmenu/uploads!" \ https://gitlab.com/api/v4/projects/vala-panel-project%2Fvala-panel-appmenu/releases \ /uploads/[0-9a-f]+/appmenu-gtk-module-?([\d\.]+)\.tar\.xz