diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/astr/portfile.cmake | |
Diffstat (limited to 'vcpkg/ports/astr/portfile.cmake')
| -rw-r--r-- | vcpkg/ports/astr/portfile.cmake | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/vcpkg/ports/astr/portfile.cmake b/vcpkg/ports/astr/portfile.cmake new file mode 100644 index 0000000..bd52174 --- /dev/null +++ b/vcpkg/ports/astr/portfile.cmake @@ -0,0 +1,25 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO a4z/astr + REF "${VERSION}" + SHA512 528f851821e3bd0719881ed237b1720529a7c9141005214b1963565f164d1a6ec89adb1ea8efee0fa818ba9d8961afb4c7adfc91aca6308799d1ecbd8a9f2ab2 + HEAD_REF main +) + +set(VCPKG_BUILD_TYPE release) # header-only + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DBUILD_TESTING=OFF +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT}) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib") + +configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY) + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") |