+ # mv ./ripgrep-*/rg ~/.local/opt/rg-v12.1.1/bin/rg
+ mv ./ripgrep-*/rg "$pkg_src_cmd"
+ }
+
+ # pkg_get_current_version is recommended, but (soon) not required
+ pkg_get_current_version() {
+ # 'rg --version' has output in this format:
+ # ripgrep 12.1.1 (rev 7cb211378a)
+ # -SIMD -AVX (compiled)
+ # +SIMD -AVX (runtime)
+ # This trims it down to just the version number:
+ # 12.1.1
+ echo $(rg --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2)
+ }