Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
25a349b
common/xbps-src/shutils/update_check: support custom patterns with in…
Rutpiv May 15, 2026
f91f0a1
common/xbps-src/shutils/update_check: add distfiles_only to skip home…
Rutpiv May 16, 2026
edf8e88
Manual.md: document distfiles_only and refs/tags/ auto-prefix
Rutpiv May 16, 2026
86370f4
CImg: migrate update pattern to info/refs
Rutpiv May 17, 2026
68d37d0
EternalTerminal: migrate update pattern to info/refs
Rutpiv May 17, 2026
74fcbe3
ImageMagick: migrate update pattern to info/refs
Rutpiv May 17, 2026
18ad612
Lucene++: migrate update pattern to info/refs
Rutpiv May 17, 2026
da8952e
OpenSubdiv: migrate update pattern to info/refs
Rutpiv May 17, 2026
399d862
SPIRV-Headers: migrate update pattern to info/refs
Rutpiv May 17, 2026
60293ed
SPIRV-LLVM-Translator19: migrate update pattern to info/refs
Rutpiv May 17, 2026
aa62ddf
SPIRV-LLVM-Translator21: migrate update pattern to info/refs
Rutpiv May 17, 2026
7e1a07e
SPIRV-LLVM-Translator22: migrate update pattern to info/refs
Rutpiv May 17, 2026
51d7b8b
SPIRV-Tools: migrate update pattern to info/refs
Rutpiv May 17, 2026
2769da4
UEFITool: migrate update pattern to info/refs
Rutpiv May 17, 2026
db0a742
Vulkan-Headers: migrate update pattern to info/refs
Rutpiv May 17, 2026
bb85353
Vulkan-Tools: migrate update pattern to info/refs
Rutpiv May 17, 2026
59feb44
Vulkan-Utility-Libraries: migrate update pattern to info/refs
Rutpiv May 17, 2026
df1eeb5
Vulkan-ValidationLayers: migrate update pattern to info/refs
Rutpiv May 17, 2026
4164a87
asahi-uboot: migrate update pattern to info/refs
Rutpiv May 17, 2026
f87a975
atomicparsley: migrate update pattern to info/refs
Rutpiv May 17, 2026
e8932cb
cgal: migrate update pattern to info/refs
Rutpiv May 17, 2026
14b7ad8
cronutils: migrate update pattern to info/refs
Rutpiv May 17, 2026
fdebbbf
discount: migrate update pattern to info/refs
Rutpiv May 17, 2026
ae7fd7d
eigen3.2: migrate update pattern to info/refs
Rutpiv May 17, 2026
1c9ecb4
faac: migrate update pattern to info/refs
Rutpiv May 17, 2026
6d16486
faad2: migrate update pattern to info/refs
Rutpiv May 17, 2026
9012247
flintlib: migrate update pattern to info/refs
Rutpiv May 17, 2026
e623105
fntsample: migrate update pattern to info/refs
Rutpiv May 17, 2026
41ec0f3
font-adobe-source-code-pro: migrate update pattern to info/refs
Rutpiv May 17, 2026
53d7a54
gdmd: migrate update pattern to info/refs
Rutpiv May 17, 2026
80b9856
gnome-epub-thumbnailer: migrate update pattern to info/refs
Rutpiv May 17, 2026
ea580ea
godot: migrate update pattern to info/refs
Rutpiv May 17, 2026
b5d7cc8
gopls: migrate update pattern to info/refs
Rutpiv May 17, 2026
140ab81
gzdoom: migrate update pattern to info/refs
Rutpiv May 17, 2026
23dd8d8
incron: migrate update pattern to info/refs
Rutpiv May 17, 2026
9803127
inih: migrate update pattern to info/refs
Rutpiv May 17, 2026
ae333dd
intel-ucode: migrate update pattern to info/refs
Rutpiv May 17, 2026
f398bcf
inxi: migrate update pattern to info/refs
Rutpiv May 17, 2026
d5c0b05
iverilog: migrate update pattern to info/refs
Rutpiv May 17, 2026
1e667a3
j4-dmenu-desktop: migrate update pattern to info/refs
Rutpiv May 17, 2026
2ca0bb2
kodi: migrate update pattern to info/refs
Rutpiv May 17, 2026
9ceb57a
lf: migrate update pattern to info/refs
Rutpiv May 17, 2026
2984199
libaccounts-qt: migrate update pattern to info/refs
Rutpiv May 17, 2026
d0f2348
libblockdev: migrate update pattern to info/refs
Rutpiv May 17, 2026
b4a2a7e
libcgroup: migrate update pattern to info/refs
Rutpiv May 17, 2026
60aa9c2
libeot: migrate update pattern to info/refs
Rutpiv May 17, 2026
26fd389
libgit2-1.8: migrate update pattern to info/refs
Rutpiv May 17, 2026
07cedde
libgit2-1.9: migrate update pattern to info/refs
Rutpiv May 17, 2026
468ec63
libgme: migrate update pattern to info/refs
Rutpiv May 17, 2026
f0a8d1a
libhomfly: migrate update pattern to info/refs
Rutpiv May 17, 2026
6e8eed6
libkeybinder3: migrate update pattern to info/refs
Rutpiv May 17, 2026
dc80046
libluv: migrate update pattern to info/refs
Rutpiv May 17, 2026
cdfc48a
libmygui: migrate update pattern to info/refs
Rutpiv May 17, 2026
2b5dea2
libui: migrate update pattern to info/refs
Rutpiv May 17, 2026
8ec3e6f
libvidstab: migrate update pattern to info/refs
Rutpiv May 17, 2026
1c864d5
lilypond-doc: migrate update pattern to info/refs
Rutpiv May 17, 2026
63aeb84
linux-asahi: migrate update pattern to info/refs
Rutpiv May 17, 2026
50a2ed9
liteide: migrate update pattern to info/refs
Rutpiv May 17, 2026
187fe5e
lm_sensors: migrate update pattern to info/refs
Rutpiv May 17, 2026
4a8c902
lmdb: migrate update pattern to info/refs
Rutpiv May 17, 2026
4f0aa7b
love: migrate update pattern to info/refs
Rutpiv May 17, 2026
e4d258c
lsyncd: migrate update pattern to info/refs
Rutpiv May 17, 2026
1f0a02d
lua54-luafilesystem: migrate update pattern to info/refs
Rutpiv May 17, 2026
39104bb
mame: migrate update pattern to info/refs
Rutpiv May 17, 2026
c0920db
mathjax2: migrate update pattern to info/refs
Rutpiv May 17, 2026
07856f2
md4c: migrate update pattern to info/refs
Rutpiv May 17, 2026
8f316b6
minio: migrate update pattern to info/refs
Rutpiv May 17, 2026
f91f0b4
miruo: migrate update pattern to info/refs
Rutpiv May 17, 2026
94b58ac
moosefs: migrate update pattern to info/refs
Rutpiv May 17, 2026
903c438
openimageio: migrate update pattern to info/refs
Rutpiv May 17, 2026
8ac3b44
openjdk8: migrate update pattern to info/refs
Rutpiv May 17, 2026
a30d82c
otfcc: migrate update pattern to info/refs
Rutpiv May 17, 2026
67c6620
pgbackrest: migrate update pattern to info/refs
Rutpiv May 17, 2026
5c8ea2b
poedit: migrate update pattern to info/refs
Rutpiv May 17, 2026
3849db7
python3-aioamqp: migrate update pattern to info/refs
Rutpiv May 17, 2026
d93be63
python3-hypothesis: migrate update pattern to info/refs
Rutpiv May 17, 2026
59d5759
python3-pyqtgraph: migrate update pattern to info/refs
Rutpiv May 17, 2026
3f3a852
re2: migrate update pattern to info/refs
Rutpiv May 17, 2026
26d85dc
redshift: migrate update pattern to info/refs
Rutpiv May 17, 2026
c902d9a
redsocks: migrate update pattern to info/refs
Rutpiv May 17, 2026
5493a5e
sane: migrate update pattern to info/refs
Rutpiv May 17, 2026
b343598
sasm: migrate update pattern to info/refs
Rutpiv May 17, 2026
e2ac8d7
sdl12-compat: migrate update pattern to info/refs
Rutpiv May 17, 2026
202d101
slurm-wlm: migrate update pattern to info/refs
Rutpiv May 17, 2026
449bf3b
spectrwm: migrate update pattern to info/refs
Rutpiv May 17, 2026
61e35db
swayr: migrate update pattern to info/refs
Rutpiv May 17, 2026
23a422b
swayrbar: migrate update pattern to info/refs
Rutpiv May 17, 2026
b364174
taplo: migrate update pattern to info/refs
Rutpiv May 17, 2026
af228e2
tectonic: migrate update pattern to info/refs
Rutpiv May 17, 2026
d1e9f19
tinymist: migrate update pattern to info/refs
Rutpiv May 17, 2026
ff42a3f
tmux: migrate update pattern to info/refs
Rutpiv May 17, 2026
e295967
vapoursynth: migrate update pattern to info/refs
Rutpiv May 17, 2026
baf2512
w3m: migrate update pattern to info/refs
Rutpiv May 17, 2026
5d9e6a2
wire-desktop: migrate update pattern to info/refs
Rutpiv May 17, 2026
15ee86a
wlroots0.18: migrate update pattern to info/refs
Rutpiv May 17, 2026
3fa1694
wlroots0.19: migrate update pattern to info/refs
Rutpiv May 17, 2026
961eab7
wlroots0.20: migrate update pattern to info/refs
Rutpiv May 17, 2026
7019269
x265: migrate update pattern to info/refs
Rutpiv May 17, 2026
a4128b3
xdelta3: migrate update pattern to info/refs
Rutpiv May 17, 2026
3a4bb19
yaydl: migrate update pattern to info/refs
Rutpiv May 17, 2026
8872b8d
zeux-volk: migrate update pattern to info/refs
Rutpiv May 17, 2026
a23923e
zfs-auto-snapshot: migrate update pattern to info/refs
Rutpiv May 17, 2026
e1fd698
zfs-lts: migrate update pattern to info/refs
Rutpiv May 17, 2026
5ac65f3
zimg: migrate update pattern to info/refs
Rutpiv May 17, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions Manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,14 @@ file in the same directory as the relevant `template` file:
mentioned. If unset, defaults to `homepage` and the directories where
`distfiles` reside.

- `distfiles_only` if set to `yes`, the package homepage is excluded
from the URLs scanned for version detection. Only the directories
derived from `distfiles` (and any URL set via `site`) are checked.
This is useful when a custom `pattern` is tuned for a specific
endpoint format (such as a git forge's `info/refs`) and would
produce spurious matches against unrelated numbers appearing in the
homepage HTML.

- `pkgname` is the package name the default pattern checks for.
If unset, defaults to `pkgname` from the template.

Expand Down Expand Up @@ -944,6 +952,51 @@ in url. Defaults to `(|\.x)`.
in cases where checking for updates is impossible or does not make sense.
This should be set to a string describing why it is disabled.

#### Git forge endpoints

When `update_check.sh` scans URLs against a git forge's `info/refs`
endpoint (used automatically for `github.com`, `gitlab.*`,
`bitbucket.org`, `codeberg.org`, and `git.sr.ht` URLs), custom
`pattern` entries may omit the `refs/tags/` prefix; it is auto-prefixed
when not already present. For example, these two patterns are
equivalent for a GitHub-hosted package:

pattern='refs/tags/vulkan-sdk-\K[\d.]+'
pattern='vulkan-sdk-\K[\d.]+'

The second form is preferred: it keeps the pattern focused on the
package-specific tag convention rather than restating the endpoint
format.

This auto-prefixing only applies when the URL contains `info/refs`;
patterns used against URLs set explicitly via `site` are matched
as-written.

#### Choosing between `site`, `distfiles_only` and the default behavior

Most packages need neither `site` nor `distfiles_only`: the default
behavior of scanning the homepage and distfiles directories works
well when the `pattern` (or the default regex) has a strong anchor
that won't match unrelated content.

Use `distfiles_only=yes` when:

- A custom `pattern` is specific enough to detect versions on the
distfiles URL, but matches unrelated numbers when applied to the
package homepage.

Use `site=URL` when:

- The version cannot be detected from `homepage` or `distfiles`
directories alone (e.g., upstream lists versions on a separate
release page).
- One of the URLs in `distfiles` is a secondary file (such as a
pkg-config template fetched from `raw.githubusercontent.com`) that
produces unwanted matches independently of the homepage.
- A non-standard `info/refs` endpoint must be targeted (e.g., a
self-hosted forge whose URL doesn't match the automatic patterns
above).

<a id="patches"></a>
### Handling patches

Expand Down
9 changes: 8 additions & 1 deletion common/xbps-src/shutils/update_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ update_check() {
*ftp.gnome.org*|*download.gnome.org*) ;;
*archive.xfce.org*) ;;
*)
printf '%s\n' "$homepage" ;;
[ "$distfiles_only" = yes ] || printf '%s\n' "$homepage" ;;
esac
for i in $distfiles; do
printf '%s\n' "${i%/*}/"
Expand Down Expand Up @@ -216,6 +216,13 @@ update_check() {
rx=${pattern:-$rx}
rx=${rx:-'(?<!-)\b\Q'"$pkgname"'\E[-_]?((src|source)[-_])?v?\K([^-/_\s]*?\d[^-/_\s]*?)(?=(?:[-_.](?:src|source|orig))?\.(?:[jt]ar|shar|t[bglx]z|tbz2|zip))\b'}

# When using a git forge's info/refs endpoint, custom patterns may
# omit the refs/tags/ anchor for brevity. Auto-prefix it if absent.
if [ -n "$pattern" ] && [[ "$url" == *info/refs* ]] && [[ "$rx" != refs/tags/* ]]; then
msg_verbose "auto-prefixing refs/tags/ to custom pattern\n"
rx="refs/tags/$rx"
fi

if [ "${fetchedurls[$url]}" ]; then
msg_verbose "already fetched $url\n"
continue
Expand Down
2 changes: 1 addition & 1 deletion srcpkgs/CImg/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern="/archive/refs/tags/v.\K[\d.]+(?=\.tar\.gz)"
pattern="v\.\K\d+\.[\d.]+"
2 changes: 1 addition & 1 deletion srcpkgs/EternalTerminal/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern='/archive/refs/tags/et-v?\K[\d\.]+(?=\.tar\.gz")'
pattern="et-v?\K[\d.]+"
3 changes: 2 additions & 1 deletion srcpkgs/ImageMagick/update
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pattern='/archive/refs/tags/\K[\d\.]+-\d+(?=\.tar\.gz)'
distfiles_only=yes
pattern="\K[\d.]+-\d+"
2 changes: 1 addition & 1 deletion srcpkgs/Lucene++/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern="rel_\K[\d.]+(?=\.tar\.gz)"
pattern="rel_\K[\d.]+"
4 changes: 3 additions & 1 deletion srcpkgs/OpenSubdiv/update
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
pattern="v\K[\d_+]+(?=\.tar\.gz)"
distfiles_only=yes
pattern="v\K\d+(?:_\d+)*(_RC\d*)?"
ignore="*RC*"
2 changes: 1 addition & 1 deletion srcpkgs/SPIRV-Headers/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern="/vulkan-sdk-\K[0-9.]+(?=.tar.gz)"
pattern="vulkan-sdk-\K[\d.]+"
2 changes: 1 addition & 1 deletion srcpkgs/SPIRV-LLVM-Translator19/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern="/v\K19\.[0-9.]+(?=\.tar\.gz)"
pattern="v\K19\.[\d.]+"
2 changes: 1 addition & 1 deletion srcpkgs/SPIRV-LLVM-Translator21/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern="/v\K21\.[0-9.]+(?=\.tar\.gz)"
pattern="v\K21\.[\d.]+"
2 changes: 1 addition & 1 deletion srcpkgs/SPIRV-LLVM-Translator22/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern="/v\K22\.[0-9.]+(?=\.tar\.gz)"
pattern="v\K22\.[\d.]+"
2 changes: 1 addition & 1 deletion srcpkgs/SPIRV-Tools/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern="/v\K[0-9.]+(?=.tar.gz)"
pattern="vulkan-sdk-\K[\d.]+"
3 changes: 2 additions & 1 deletion srcpkgs/UEFITool/update
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pattern='/archive/refs/tags/(v?|UEFITool)?\K[A-Z\d.]+(?=\.tar\.gz")'
distfiles_only=yes
pattern="\K[A-Z\d.]+"
2 changes: 1 addition & 1 deletion srcpkgs/Vulkan-Headers/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern="/vulkan-sdk-\K[0-9.]+(?=.tar.gz)"
pattern="vulkan-sdk-\K[\d.]+"
2 changes: 1 addition & 1 deletion srcpkgs/Vulkan-Tools/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern="/vulkan-sdk-\K[0-9.]+(?=.tar.gz)"
pattern="vulkan-sdk-\K[\d.]+"
2 changes: 1 addition & 1 deletion srcpkgs/Vulkan-Utility-Libraries/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern="/vulkan-sdk-\K[0-9.]+(?=.tar.gz)"
pattern="vulkan-sdk-\K[\d.]+"
2 changes: 1 addition & 1 deletion srcpkgs/Vulkan-ValidationLayers/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern="/vulkan-sdk-\K[0-9.]+(?=.tar.gz)"
pattern="vulkan-sdk-\K[\d.]+"
2 changes: 1 addition & 1 deletion srcpkgs/asahi-uboot/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern='tags/asahi-v\K[\d.R-]+(?=\.tar\.gz)'
pattern="asahi-v\K[\d.A-Za-z+-]+"
2 changes: 1 addition & 1 deletion srcpkgs/atomicparsley/update
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pattern="(v?|${pkgname}-)?\K[\d.a-f]+"
version="${version}.${_commit}"
pattern='/archive/refs/tags/(v?|\Qatomicparsley\E-)?\K[\d.a-f]+(?=\.tar\.gz")'
3 changes: 2 additions & 1 deletion srcpkgs/cgal/update
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pattern="releases/CGAL-\K[\d\.]*(?=\.tar\.gz)"
pattern="v\K[\d.]+(-beta\d*)?"
ignore="*beta*"
2 changes: 1 addition & 1 deletion srcpkgs/cronutils/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern="/archive/refs/tags/version/\K[\d.]+(?=\.tar\.gz)"
pattern="version/\K[\d.]+"
2 changes: 1 addition & 1 deletion srcpkgs/discount/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern='v\K[\d.a-z]+(?=\.tar\.gz")'
pattern="v\K[\d.a-z]+"
5 changes: 3 additions & 2 deletions srcpkgs/eigen3.2/update
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pattern='eigen/get/\K[\d.]+(?=.tar.bz2)'
ignore="3.3.*"
distfiles_only=yes
pattern="\K[\d.]+"
ignore="3.[3-9]* [4-9]*"
3 changes: 2 additions & 1 deletion srcpkgs/faac/update
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pattern='/archive/refs/tags/(v?|\Q${pkgname}\E-)?\K[\d\._]+(?=\.tar\.gz")'
distfiles_only=yes
pattern="(v?|${pkgname}-)?\K[\d._]+"
3 changes: 2 additions & 1 deletion srcpkgs/faad2/update
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pattern='/archive/refs/tags/(v?|\Q${pkgname}\E-)?\K[\d\._]+(?=\.tar\.gz")'
distfiles_only=yes
pattern="(v?|${pkgname}-)?\K[\d._]+"
ignore="2003*"
3 changes: 2 additions & 1 deletion srcpkgs/flintlib/update
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pattern="/archive/refs/tags/v?\K[\d.]+(-(p|rc)[0-9]+)?(?=\.tar\.gz)"
distfiles_only=yes
pattern="v?\K[\d.]+(-(p|rc)[0-9]+)?"
version=${version/+/.}
if [[ "$version" != *rc* ]]; then
ignore=*rc*
Expand Down
2 changes: 1 addition & 1 deletion srcpkgs/fntsample/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern='/archive/refs/tags/(release/|v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=\.tar\.gz")'
pattern="release/\K[\d.]+"
3 changes: 2 additions & 1 deletion srcpkgs/font-adobe-source-code-pro/update
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pattern='(?!archive/refs/tags/)[0-9.]+(?=R?-[0-9./VARuivfr-]+[.]tar[.]gz)'
distfiles_only=yes
pattern="\K[\d.]+"
2 changes: 1 addition & 1 deletion srcpkgs/gdmd/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern='(?<=script-)[0-9.]*(?=.tar.gz)'
pattern="script-\K[\d.]+"
2 changes: 1 addition & 1 deletion srcpkgs/gnome-epub-thumbnailer/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern="\Q$pkgname\E-\K[0-9.]+(?=\.tar)"
pattern="${pkgname}-\K[0-9.]+"
2 changes: 1 addition & 1 deletion srcpkgs/godot/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern='/archive/refs/tags/(v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=-stable\.tar\.gz")'
pattern="(v?|${pkgname}-)?\K[\d.]+(?=-stable)"
3 changes: 2 additions & 1 deletion srcpkgs/gopls/update
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pattern='/archive/refs/tags/\Q'"$pkgname"'\E/v\K[\d\.]+(?=\.tar\.gz")'
pattern="${pkgname}/v\K[\d.]+(-pre\.[0-9]+)?"
ignore="*pre*"
3 changes: 2 additions & 1 deletion srcpkgs/gzdoom/update
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pattern='/archive/refs/tags/(g|v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=\.tar\.gz")'
pattern="g\K[\d.]+(pre)?"
ignore="*pre*"
2 changes: 1 addition & 1 deletion srcpkgs/incron/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern="${pkgname}-\K[\d.]+(?=\.tar.bz2)"
pattern="incron-\K[\d.]+"
2 changes: 1 addition & 1 deletion srcpkgs/inih/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern='/r\K[\d.]+(?=.tar.gz)'
pattern="r\K[\d.]+"
2 changes: 1 addition & 1 deletion srcpkgs/intel-ucode/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern="microcode-\K[0-9]+(?=.tar)"
pattern="microcode-\K[\d]+"
4 changes: 2 additions & 2 deletions srcpkgs/inxi/update
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pattern="/archive/\K[\d.]+(?=[0-9a-z-]+\.tar\.gz)"
version=${version%\.*}
distfiles_only=yes
pattern="\K[\d.]+"
3 changes: 2 additions & 1 deletion srcpkgs/iverilog/update
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pattern='/archive/refs/tags/(v?|\Q'"$pkgname"'\E-)?\K[\d\_]+(?=\.tar\.gz")'
distfiles_only=yes
pattern="(v?|${pkgname}-)?\K[\d_]+"
3 changes: 2 additions & 1 deletion srcpkgs/j4-dmenu-desktop/update
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pattern='/archive/refs/tags/(v?|\Q'"$pkgname"'\E-)?r\K[\d\.]+(?=\.tar\.gz")'
pattern="r\K[\d.]+(-(rc|beta)[0-9]*)?"
ignore="*rc* *beta*"
3 changes: 2 additions & 1 deletion srcpkgs/kodi/update
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pattern="\d+\.[\d.]+(?=-\w+\.tar\.gz)"
distfiles_only=yes
pattern="\K\d+\.[\d.]+(?=-\w+)"
2 changes: 1 addition & 1 deletion srcpkgs/lf/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern='archive/refs/tags/\Kr[0-9]+(?=\.tar.gz)'
pattern="\Kr[\d.]+"
3 changes: 2 additions & 1 deletion srcpkgs/libaccounts-qt/update
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pattern='/archive/[^/]+/'"$pkgname"'?-VERSION_\K[\d\.]+(?=\.tar\.gz")'
distfiles_only=yes
pattern="VERSION_\K[\d.]+"
3 changes: 2 additions & 1 deletion srcpkgs/libblockdev/update
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pattern="\K[\d\.]*(?=-1\.tar\.gz)"
distfiles_only=yes
pattern="\K[\d.]+"
3 changes: 2 additions & 1 deletion srcpkgs/libcgroup/update
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pattern="${pkgname}-v?\K[\d.]+(?=\.tar)"
distfiles_only=yes
pattern="v?\K[\d.]+"
3 changes: 2 additions & 1 deletion srcpkgs/libeot/update
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pattern="(?<=v)[0-9][0-9.]+(?=.tar)|(?<=libeot-)[0-9][0-9.]+(?=.tar)"
site="https://github.com/umanwizard/libeot/info/refs?service=git-upload-pack"
pattern="v\K[\d.]+"
2 changes: 1 addition & 1 deletion srcpkgs/libgit2-1.8/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern="v\K1\.8\.[\d.]+(?=\.tar\.gz)"
pattern="v\K1\.8\.[\d.]+"
2 changes: 1 addition & 1 deletion srcpkgs/libgit2-1.9/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern="v\K1\.9\.[\d.]+(?=\.tar\.gz)"
pattern="v\K1\.9\.[\d.]+"
3 changes: 2 additions & 1 deletion srcpkgs/libgme/update
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pattern="game-music-emu-\K[\d.]+"
distfiles_only=yes
pattern="\K[\d.]+"
3 changes: 2 additions & 1 deletion srcpkgs/libhomfly/update
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pattern='/archive/refs/tags/\K[\d.r]+(?=\.tar\.gz")'
distfiles_only=yes
pattern="\K[\d.r]+"
2 changes: 1 addition & 1 deletion srcpkgs/libkeybinder3/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern='/archive/refs/tags/(keybinder-3.0-v|v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=\.tar\.gz")'
pattern="keybinder-3.0-v\K[\d.]+"
3 changes: 2 additions & 1 deletion srcpkgs/libluv/update
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pattern='/archive/refs/tags/(v?|\Q'"$pkgname"'\E-)?\K[-\d\.]+(?=\.tar\.gz")'
site="https://github.com/luvit/luv/info/refs?service=git-upload-pack"
pattern="(v?|${pkgname}-)?\K[-\d.]+"
2 changes: 1 addition & 1 deletion srcpkgs/libmygui/update
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pkgname=MyGUI
pattern='/archive/refs/tags/(v?|\Q'"$pkgname"'\E)?\K[\d\.]+(?=\.tar\.gz")'
pattern="(v?|${pkgname})?\K[\d.]+"
3 changes: 2 additions & 1 deletion srcpkgs/libui/update
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pattern='/libui/archive/refs/tags/\K[a-z]+[\d+.]+(?=.tar.gz)'
distfiles_only=yes
pattern="\K[a-z]+[\d.]+"
2 changes: 1 addition & 1 deletion srcpkgs/libvidstab/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern='tag/release-\K.*(?=")'
pattern="v\K[\d.]+"
5 changes: 3 additions & 2 deletions srcpkgs/lilypond-doc/update
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
version="${version}-1"
pattern="lilypond-\K[\d.-]+(?=.documentation)"
distfiles_only=yes
pattern="v\K[\d.]+"
ignore="2.27*"
2 changes: 1 addition & 1 deletion srcpkgs/linux-asahi/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern='tags/asahi-\K[\d.-]+(?=\.tar\.gz)'
pattern="asahi-\K${version%%.*}\.[\d.A-Za-z+-]+"
2 changes: 1 addition & 1 deletion srcpkgs/liteide/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern='/archive/refs/tags/(x|v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=\.tar\.gz")'
pattern="x\K[\d.]+"
2 changes: 1 addition & 1 deletion srcpkgs/lm_sensors/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern='V\K[\d-]+(?=</a>)'
pattern="V\K[\d-]+"
2 changes: 1 addition & 1 deletion srcpkgs/lmdb/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern='LMDB_\K[\d.]+(?=\.tar)'
pattern="LMDB_\K[\d.]+"
3 changes: 2 additions & 1 deletion srcpkgs/love/update
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pattern='/(get|downloads)/(v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=(-linux-src)?\.tar)'
distfiles_only=yes
pattern="\K[\d.]+"
2 changes: 1 addition & 1 deletion srcpkgs/lsyncd/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern="release-\K[\d\.]*(?=\.tar.gz)"
pattern="release-\K[\d.]+"
2 changes: 1 addition & 1 deletion srcpkgs/lua54-luafilesystem/update
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pattern='/archive/refs/tags/(v?|\Q'"$pkgname"'\E-)?\K[\d._]+(?=\.tar\.gz")'
pattern="(v?|${pkgname}-)?\K[\d._]+"
version=${version//_/.}
2 changes: 1 addition & 1 deletion srcpkgs/mame/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern="${pkgname}\K\d+(?=\.tar)"
pattern="mame\K\d+"
3 changes: 2 additions & 1 deletion srcpkgs/mathjax2/update
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pattern='refs/tags/\K2[.][0-9.]*(?=.tar.gz)'
distfiles_only=yes
pattern="\K2\.[\d.]+"
2 changes: 1 addition & 1 deletion srcpkgs/md4c/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern="release-\K[0-9.]+(?=.tar.gz)"
pattern="release-\K[\d.]+"
2 changes: 1 addition & 1 deletion srcpkgs/minio/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern="/archive/refs/tags/RELEASE\.\K[-\d]+(?=T[-\d]+Z\.tar\.gz)"
pattern="RELEASE\.\K[\d-]+"
2 changes: 1 addition & 1 deletion srcpkgs/miruo/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern='/archive/refs/tags/(v?|\Q'"$pkgname"'\E-)?\K[\d\.]+[a-z]*(?=\.tar\.gz")'
pattern="(v?|${pkgname}-)?\K[\d.]+[a-z]*"
3 changes: 2 additions & 1 deletion srcpkgs/moosefs/update
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pattern="$pkgname-\K[\d\.]*(?=\-1\.tar\.gz)"
distfiles_only=yes
pattern="v\K[\d.]+"
4 changes: 3 additions & 1 deletion srcpkgs/openimageio/update
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
pattern="Release-\K[\d\.]+(?=\.tar)"
distfiles_only=yes
pattern="v\K[\d.]+(-dev)?"
ignore="*dev*"
2 changes: 1 addition & 1 deletion srcpkgs/openjdk8/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern='shenandoah\K8u[\db-]+(?=\.tar\.gz)'
pattern="shenandoah\K8u[\db-]+"
2 changes: 1 addition & 1 deletion srcpkgs/otfcc/update
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pattern='/archive/refs/tags/(v?|\Q'"$pkgname"'\E-)?\K[-\d\.a-z]+(?=\.tar\.gz")'
pattern="(v?|${pkgname}-)?\K[-\d.a-z]+"
version="${version/alpha/.alpha}"
2 changes: 1 addition & 1 deletion srcpkgs/pgbackrest/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern='/archive/refs/tags/(v?|\Qrelease/\E)?\K[\d\.]+(?=\.tar\.gz")'
pattern="release/\K[\d.]+"
2 changes: 1 addition & 1 deletion srcpkgs/poedit/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern='/archive/refs/tags/(v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=-oss\.tar\.gz")'
pattern="(v?|${pkgname}-)?\K[\d.]+(?=-oss)"
2 changes: 1 addition & 1 deletion srcpkgs/python3-aioamqp/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern="${pkgname#*-}-\K[0-9.]*(?=.tar.gz)"
pattern="aioamqp-\K[0-9.]+"
2 changes: 1 addition & 1 deletion srcpkgs/python3-hypothesis/update
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pkgname=hypothesis-python
pattern="${pkgname}-\K[0-9.]+\.0(?=\.tar\.gz)"
pattern="${pkgname}-\K[0-9.]+"
3 changes: 2 additions & 1 deletion srcpkgs/python3-pyqtgraph/update
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pattern='pyqtgraph-\K[\d.]+(?=")'
distfiles_only=yes
pattern="pyqtgraph-\K[\d.]+"
3 changes: 2 additions & 1 deletion srcpkgs/re2/update
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pattern="\K[\d\-]*([\d\-]+)(?=\.tar\.gz)"
distfiles_only=yes
pattern="\K[\d-]+"
3 changes: 2 additions & 1 deletion srcpkgs/redshift/update
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pattern='Redshift \K[\d.]+'
distfiles_only=yes
pattern="v\K[\d.]+"
3 changes: 2 additions & 1 deletion srcpkgs/redsocks/update
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pattern="release-\K[\d.]*(?=\.tar\.gz)"
distfiles_only=yes
pattern="release-\K[\d.]+"
3 changes: 2 additions & 1 deletion srcpkgs/sane/update
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pattern='href="/sane-project/backends/-/tags/[^\d\.]*\K[\d\.]*'
distfiles_only=yes
pattern="\K[\d.]+"
3 changes: 2 additions & 1 deletion srcpkgs/sasm/update
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pattern=".*/archive/refs/tags/v\K.+(?=\.tar\.gz)"
distfiles_only=yes
pattern="v\K[\d.]+"
2 changes: 1 addition & 1 deletion srcpkgs/sdl12-compat/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern='release-\K[\d.]+(?=\.tar\.gz")'
pattern="release-\K[\d.]+"
3 changes: 2 additions & 1 deletion srcpkgs/slurm-wlm/update
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pkgname=slurm
pattern='slurm-\K[-\d]+(?=.tar.gz)'
pattern="${pkgname}-\K[\d-]+(rc\d*)?"
ignore="*rc*"
2 changes: 1 addition & 1 deletion srcpkgs/spectrwm/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern="SPECTRWM_\K[\d\_]*(?=\.tar\.gz)"
pattern="SPECTRWM_\K[\d_]+"
3 changes: 2 additions & 1 deletion srcpkgs/swayr/update
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pattern='<title>Release swayr-\K[\d.]+(?=</title>)'
distfiles_only=yes
pattern="swayr-\K[\d.]+"
3 changes: 2 additions & 1 deletion srcpkgs/swayrbar/update
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pattern='<title>Release swayrbar-\K[\d.]+(?=</title>)'
distfiles_only=yes
pattern="swayrbar-\K[\d.]+"
2 changes: 1 addition & 1 deletion srcpkgs/taplo/update
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pattern="release-taplo-cli-\K[\d.]+(?=\.tar\.gz)"
pattern="release-taplo-cli-\K[\d.]+"
Loading
Loading