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"
21 # pkg_get_current_version is recommended, but (soon) not required
22 pkg_get_current_version() {
23 # 'gprox --version' has output in this format:
24 # gprox 0.99.9 (rev abcdef0123)
25 # This trims it down to just the version number:
27 echo $(gprox --version 2> /dev/null | head -n 1 | cut -d ' ' -f 2)