aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/lionkor-commandline/portfile.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/lionkor-commandline/portfile.cmake')
-rw-r--r--vcpkg/ports/lionkor-commandline/portfile.cmake24
1 files changed, 24 insertions, 0 deletions
diff --git a/vcpkg/ports/lionkor-commandline/portfile.cmake b/vcpkg/ports/lionkor-commandline/portfile.cmake
new file mode 100644
index 0000000..f975e13
--- /dev/null
+++ b/vcpkg/ports/lionkor-commandline/portfile.cmake
@@ -0,0 +1,24 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO lionkor/commandline
+ REF v${VERSION}
+ SHA512 c7b4cdafae55d5916e527e39a9186a4d15cbb7f65f39a23b149c5f9466dbf55ee947541c4abeabf6949425b8823076d540209112ec2509cd1e6ab583ce6fcfba
+ HEAD_REF master
+ PATCHES
+ add-install.patch
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DBUILD_EXAMPLES=OFF
+)
+vcpkg_cmake_install()
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+# Handle copyright
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)