From 14c0cb3923bf9333a0658039046f72f92feb7705 Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Tue, 10 Oct 2023 09:14:27 +0000 Subject: [PATCH] Fixing d/watch --- debian/watch | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/debian/watch b/debian/watch index 390c8ca..7da1248 100644 --- a/debian/watch +++ b/debian/watch @@ -1,5 +1,6 @@ -# Compulsory line, this is a version 3 file -version=3 - -opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/linux-malware-detect-$1\.tar\.gz/,uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\d*)$/$1-$2/ \ - https://github.com/rfxn/linux-malware-detect/releases .*/v?(\d\S*)\.tar\.gz +# Compulsory line, this is a version 4 file +version=4 +opts="searchmode=plain,\ +filenamemangle=s%v?@ANY_VERSION@%@PACKAGE@-$1.tar.xz%" \ +https://api.github.com/repos/rfxn/linux-malware-detect/releases?per_page=50 \ +https://api.github.com/repos/[^/]+/[^/]+/tarball/v?@ANY_VERSION@