post_install() { export VCPKG_ROOT=/opt/vcpkg export VCPKG_DOWNLOADS=/var/cache/vcpkg cat << _EOF ==> vcpkg user note: ------------------------------------------------------------------------------ "VCPKG_ROOT" is set to "$VCPKG_ROOT" "VCPKG_DOWNLOADS" is set to "$VCPKG_DOWNLOADS" $( if [ $(uname -m) == "aarch64" ]; then echo '"VCPKG_FORCE_SYSTEM_BINARIES" is also set to 1 as this is required for vcpkg to run on aarch64.' fi ) To cooperate with CMake, add "-DCMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake" Please add the intended users to the group 'vcpkg': # gpasswd -a vcpkg _EOF } post_upgrade() { post_install }