Il giorno lun 19 set 2022 alle 18:12:15 +02:00:00, Samuel Thibault <sthiba...@debian.org> ha scritto:
That works for the tags page, but not for the releases page... The
problem is that the tags page only contains snapshots of the repository, and not an autoconf-ed tarball. For instance since recently uscan cannot
get the correct tarballs from

https://github.com/brailcom/speechd/releases

Hi, what I usually do with GitHub is to use its API, since it has the advantage of not breaking uscan when they do changes to the web UI.

See <https://salsa.debian.org/debian/yuzu/-/blob/debian/latest/debian/watch> for example.

In your case, as you have to download an asset and not the automatic tarball produced by GitHub, I'd do something like this:

   version=4
   opts="searchmode=plain, \
filenamemangle=s/.+\/speech-dispatcher-@any_vers...@.tar.gz/@PACKAGE@-$1\.tar\.gz/" \
   https://api.github.com/repos/brailcom/speechd/releases \
https://github.com/brailcom/speechd/releases/download/\d[\.\d]*/speech-dispatcher-@any_vers...@.tar.gz

It could probably be done in a cleaner way, but my knowledge of regular expressions is pretty limited :/

--
OpenPGP key: 66DE F152 8299 0C21 99EF  A801 A8A1 28A8 AB1C EE49


Reply via email to