blob: 1fe622925a95389ca731a60cdeeda97a8c489741 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
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 <user> vcpkg
_EOF
}
post_upgrade() {
post_install
}
|