2019-01-25 21:07:17 +00:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO effolkronium/random
|
2023-09-29 14:41:00 +08:00
|
|
|
REF "v${VERSION}"
|
|
|
|
SHA512 778667d3b3a4bd51b67ef7d1842652dcf6d7df210345f667d0474cdfe48bb75fa2c891f8843f3fc4946fb2ef71da652c296eaaa03718ed889dee4926d743b7dd
|
2019-01-25 21:07:17 +00:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-10-05 02:13:49 +02:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-01-25 21:07:17 +00:00
|
|
|
OPTIONS
|
2021-10-20 09:30:16 +08:00
|
|
|
-DRandom_BuildTests=OFF
|
2019-01-25 21:07:17 +00:00
|
|
|
)
|
|
|
|
|
2021-10-05 02:13:49 +02:00
|
|
|
vcpkg_cmake_install()
|
2021-10-20 09:30:16 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME effolkronium_random CONFIG_PATH cmake)
|
2019-01-25 21:07:17 +00:00
|
|
|
|
2021-10-05 02:13:49 +02:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
2021-10-20 09:30:16 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.MIT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|