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/vcpkg-tool-lessmsi | |
Diffstat (limited to 'vcpkg/ports/vcpkg-tool-lessmsi')
| -rw-r--r-- | vcpkg/ports/vcpkg-tool-lessmsi/portfile.cmake | 4 | ||||
| -rw-r--r-- | vcpkg/ports/vcpkg-tool-lessmsi/vcpkg-port-config.cmake | 16 | ||||
| -rw-r--r-- | vcpkg/ports/vcpkg-tool-lessmsi/vcpkg.json | 9 |
3 files changed, 29 insertions, 0 deletions
diff --git a/vcpkg/ports/vcpkg-tool-lessmsi/portfile.cmake b/vcpkg/ports/vcpkg-tool-lessmsi/portfile.cmake new file mode 100644 index 0000000..96fcd1c --- /dev/null +++ b/vcpkg/ports/vcpkg-tool-lessmsi/portfile.cmake @@ -0,0 +1,4 @@ +set(VCPKG_POLICY_CMAKE_HELPER_PORT enabled) + +configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-port-config.cmake" "${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-port-config.cmake" @ONLY) +file(INSTALL "${VCPKG_ROOT_DIR}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/vcpkg/ports/vcpkg-tool-lessmsi/vcpkg-port-config.cmake b/vcpkg/ports/vcpkg-tool-lessmsi/vcpkg-port-config.cmake new file mode 100644 index 0000000..e1ea36d --- /dev/null +++ b/vcpkg/ports/vcpkg-tool-lessmsi/vcpkg-port-config.cmake @@ -0,0 +1,16 @@ +include_guard(GLOBAL)
+set(version v1.10.0)
+find_program(LESSMSI PATHS "${DOWNLOADS}/lessmsi-${version}")
+if(NOT LESSMSI)
+ vcpkg_download_distfile(archive_path
+ URLS "https://github.com/activescott/lessmsi/releases/download/${version}/lessmsi-${version}.zip"
+ FILENAME "lessmsi-${version}.zip"
+ SHA512 91be9363d75e8ca0129304008ddc26fe575cc4fd76d7f43ef0a6ff414855dc1c6e412f4e694b2950026e02cc3d31b18bd8c2e4c03e1ddce01477f3f2d2197479
+ )
+ file(MAKE_DIRECTORY "${DOWNLOADS}/lessmsi-${version}")
+ file(ARCHIVE_EXTRACT
+ INPUT "${archive_path}"
+ DESTINATION "${DOWNLOADS}/lessmsi-${version}"
+ )
+ set(LESSMSI "${DOWNLOADS}/lessmsi-${version}/lessmsi@VCPKG_TARGET_EXECUTABLE_SUFFIX@")
+endif()
diff --git a/vcpkg/ports/vcpkg-tool-lessmsi/vcpkg.json b/vcpkg/ports/vcpkg-tool-lessmsi/vcpkg.json new file mode 100644 index 0000000..d3284ac --- /dev/null +++ b/vcpkg/ports/vcpkg-tool-lessmsi/vcpkg.json @@ -0,0 +1,9 @@ +{ + "name": "vcpkg-tool-lessmsi", + "version": "1.10.0", + "port-version": 1, + "description": "This is a utility with a graphical user interface and a command line interface that can be used to view and extract the contents of an MSI file.", + "homepage": "https://github.com/activescott/lessmsi", + "license": "MIT", + "supports": "native & windows" +} |