On Fri, 2025-01-31 at 13:21 +0000, philippe marguinaud wrote:
> Control: tags -1 -moreinfo
> 
> Hello Phil,
> 
> Thank you for your help. I created the debian/watch file and wrote -moreinfo 
> at
> the top of my message.
> 
> Tell me if it is ok.
> 
> Cheers,
> 
> Philippe
> 

<snip>

Hi Philippe,

The latest standards version for watch files is '4'. This must be the first
line in the 'debian/watch' file.

Let us manipulate the GitHub API example for our needs.

https://wiki.debian.org/debian/watch

https://wiki.debian.org/debian/watch#GitHub

Example using the Github API:

Although it is possible to obtain a tarball it another way, the API also works
and it is up to the maintainer's discretion which of the options to use.

version=4
opts="searchmode=plain,\
filenamemangle=s%v?@ANY_VERSION@%@PACKAGE@-$1.tar.xz%" \
https://api.github.com/repos/<user>/<project>/releases?per_page=100 \
https://api.github.com/repos/[^/]+/[^/]+/tarball/v?@ANY_VERSION@

We now change to the below in the 'debian/watch' file.

version=4
opts="searchmode=plain,\
filenamemangle=s%v?@ANY_VERSION@%@PACKAGE@-$1.tar.gz%" \
https://api.github.com/repos/pmarguinaud/fxtran/releases?per_page=100 \
https://api.github.com/repos/[^/]+/[^/]+/tarball/v?@ANY_VERSION@

In the root folder, you can now run 'uscan --force-download' to test.

See 'uscan' manpage for other program options.

Regards

Phil

-- 

Donations...

Buy Me A Coffee: https://buymeacoffee.com/kathenasorg

--

"I play the game for the game’s own sake"

Arthur Conan Doyle - The Adventure of the Bruce-Partington Plans

--

Internet Relay Chat (IRC): kathenas

Website: https://kathenas.org

Instagram: https://instagram.com/kathenasorg

Threads: https://www.threads.net/@kathenasorg

--

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to