packaging/scoop/sbm.json (3169 bytes)
1 { 2 "##": [ 3 "sbm is POSIX shell. This manifest does not port it to PowerShell: it", 4 "installs the scripts and generates a .cmd per script that runs them", 5 "through the sh.exe that comes with Git for Windows. That is why git is", 6 "a dependency. The menu is fzf; dmenu is X11 only and has no Windows", 7 "build, so it is neither installed nor mentioned as an alternative.", 8 "", 9 "license: upstream has not chosen one yet and ships no LICENSE file.", 10 "Replace SBM_LICENSE_TBD with the SPDX identifier.", 11 "hash: no release tag exists yet. Replace SBM_SHA256_TBD with the", 12 "sha256 of the tarball, or run: scoop checkver sbm <bucket> -u" 13 ], 14 "version": "0.3", 15 "description": "Bookmark manager made of POSIX sh scripts, driven by fzf", 16 "homepage": "https://github.com/equwal/sbm", 17 "license": "SBM_LICENSE_TBD", 18 "depends": [ 19 "git", 20 "fzf" 21 ], 22 "suggest": { 23 "JSON processing (bm-import of Chromium bookmark files)": "jq" 24 }, 25 "url": "https://github.com/equwal/sbm/archive/refs/tags/v0.3.tar.gz", 26 "hash": "SBM_SHA256_TBD", 27 "extract_dir": "sbm-0.3", 28 "pre_install": [ 29 "$lines = @(", 30 " '@echo off',", 31 " 'setlocal',", 32 " 'if not defined SBM_COPY set \"SBM_COPY=clip\"',", 33 " 'if not defined SBM_PASTE set \"SBM_PASTE=powershell -NoProfile -Command Get-Clipboard\"',", 34 " 'set \"SBM_SH=\"',", 35 " 'for %%I in (sh.exe) do if not defined SBM_SH if not \"%%~$PATH:I\"==\"\" set \"SBM_SH=%%~$PATH:I\"',", 36 " 'for %%I in (\"%SCOOP%\\apps\\git\\current\\bin\\sh.exe\" \"%USERPROFILE%\\scoop\\apps\\git\\current\\bin\\sh.exe\" \"%ProgramFiles%\\Git\\bin\\sh.exe\" \"%LOCALAPPDATA%\\Programs\\Git\\bin\\sh.exe\") do if not defined SBM_SH if exist %%I set \"SBM_SH=%%~I\"',", 37 " 'if not defined SBM_SH echo sbm: no POSIX sh found. Install Git: scoop install git 1>&2',", 38 " 'if not defined SBM_SH exit /b 127'", 39 ")", 40 "foreach ($t in 'bm','bm-migrate','bm-import','bm-check','bm-html','bm-title','bm-commit','bm-watch') {", 41 " ($lines + ('\"%SBM_SH%\" \"%~dp0' + $t + '\" %*')) | Set-Content -LiteralPath \"$dir\\$t.cmd\" -Encoding ASCII", 42 "}" 43 ], 44 "bin": [ 45 "bm.cmd", 46 "bm-migrate.cmd", 47 "bm-import.cmd", 48 "bm-check.cmd", 49 "bm-html.cmd", 50 "bm-title.cmd", 51 "bm-commit.cmd", 52 "bm-watch.cmd" 53 ], 54 "notes": [ 55 "The menu is fzf. dmenu is an X11 program and does not exist here.", 56 "SBM_COPY and SBM_PASTE default to clip and Get-Clipboard.", 57 "Set an opener yourself, for example:", 58 " setx SBM_OPEN \"powershell -NoProfile -Command Start-Process\"", 59 "Example tag and engine files are in the app directory; copy usertags", 60 "and engines to ~/.local/share/sbm/ (the HOME that Git Bash uses)." 61 ], 62 "checkver": { 63 "github": "https://github.com/equwal/sbm" 64 }, 65 "autoupdate": { 66 "url": "https://github.com/equwal/sbm/archive/refs/tags/v$version.tar.gz", 67 "extract_dir": "sbm-$version" 68 } 69 }