2020-05-09 05:35:16 +08:00
|
|
|
vcpkg_fail_port_install(ON_TARGET "uwp")
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO trailofbits/uthenticode
|
2021-10-27 14:40:12 +08:00
|
|
|
REF v1.0.6
|
|
|
|
SHA512 6C9C4DD9E1FE7C329E10BC39E41927C8B82DD004275A88385C691AD85EF4079EBE2922083D5252019B8B25CC540F48E544B42B8178F256AE987D6B677713B063
|
2020-05-09 05:35:16 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-10-27 14:40:12 +08:00
|
|
|
# compatibility fix for newer versions of pe-parse
|
|
|
|
foreach(FILE IN ITEMS test/wincert-test.cpp test/signeddata-test.cpp test/uthenticode-test.cpp test/certificate-test.cpp src/include/uthenticode.h)
|
|
|
|
vcpkg_replace_string("${SOURCE_PATH}/${FILE}" "#include <parser-library/parse.h>" "#include <pe-parse/parse.h>")
|
|
|
|
endforeach()
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-05-09 05:35:16 +08:00
|
|
|
)
|
|
|
|
|
2021-10-27 14:40:12 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-05-09 05:35:16 +08:00
|
|
|
|
2021-10-27 14:40:12 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/uthenticode)
|
2020-05-09 05:35:16 +08:00
|
|
|
|
2021-10-27 14:40:12 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2020-05-09 05:35:16 +08:00
|
|
|
|
2021-10-27 14:40:12 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|