5 function __init_gprox() {
11 # Every package should define these 6 variables
14 pkg_dst_cmd="$HOME/.local/bin/gprox"
15 pkg_dst="$pkg_dst_cmd"
17 pkg_src_cmd="$HOME/.local/opt/gprox-v$WEBI_VERSION/bin/gprox"
18 pkg_src_dir="$HOME/.local/opt/gprox-v$WEBI_VERSION"
19 pkg_src="$pkg_src_cmd"
23 # pkg_get_current_version is recommended, but (soon) not required
24 pkg_get_current_version() {
25 # 'gprox --version' has output in this format:
26 # gprox 0.99.9 (rev abcdef0123)
27 # This trims it down to just the version number:
29 gprox --version 2> /dev/null |