Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

01-main: + ripgrep #1026

Merged
merged 1 commit into from
Mar 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions 01-main/manifest
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ rambox
rclone
resilio-sync
retroarch
ripgrep
rocketchat
rpi-imager
rstudio
Expand Down
20 changes: 20 additions & 0 deletions 01-main/packages/ripgrep
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
DEFVER=1
ARCHS_SUPPORTED='amd64'
SUMMARY='ripgrep recursively searches directories for a regex pattern while respecting your gitignore'
EULA=''

pkg_ripgrep() {
local GH_OWNER_REPO='BurntSushi/ripgrep'
local GH_REPO=${GH_OWNER_REPO##*/}
local DEB_PKGNAME=$GH_REPO
PRETTY_NAME=$GH_REPO
WEBSITE=https://github.com/$GH_OWNER_REPO
get_github_releases "$GH_OWNER_REPO" latest
if [ "${ACTION}" != prettylist ]; then
URL=$(grep -m1 -o "\"browser_download_url\":[[:space:]]*\"[^\"]*/${DEB_PKGNAME}_[^/\"]*_${HOST_ARCH}\.deb\"" "${CACHE_FILE}")
URL=${URL%\"}; URL=${URL##*\"}
local DEB_FILENAME=${URL##*/}
VERSION_PUBLISHED=${DEB_FILENAME#*_}; VERSION_PUBLISHED=${VERSION_PUBLISHED%%_*}
fi
}
pkg_ripgrep