vcpkg/ports/uthenticode/portfile.cmake
2020-05-11 10:24:04 -07:00

29 lines
732 B
CMake

vcpkg_fail_port_install(ON_TARGET "uwp")
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO trailofbits/uthenticode
REF v1.0.3
SHA512 c4a4712aeadae34a74e8535b17af192013254edd322a4453fe567647c21ed8b10b81a5d9d9028fbe2eed7d124cb9e420b6ef516f77bcb8594250c7372a3eff0b
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/uthenticode TARGET_PATH share/uthenticode)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
file(
INSTALL
${SOURCE_PATH}/LICENSE
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
RENAME copyright
)