diff options
Diffstat (limited to 'ports/cppcodec')
| -rw-r--r-- | ports/cppcodec/CONTROL | 3 | ||||
| -rw-r--r-- | ports/cppcodec/portfile.cmake | 24 |
2 files changed, 27 insertions, 0 deletions
diff --git a/ports/cppcodec/CONTROL b/ports/cppcodec/CONTROL new file mode 100644 index 000000000..32f72bf2f --- /dev/null +++ b/ports/cppcodec/CONTROL @@ -0,0 +1,3 @@ +Source: cppcodec
+Version: 0.2
+Description: Header-only C++11 library to encode/decode base64, base64url, base32, base32hex and hex (a.k.a. base16) as specified in RFC 4648, plus Crockford's base32.
\ No newline at end of file diff --git a/ports/cppcodec/portfile.cmake b/ports/cppcodec/portfile.cmake new file mode 100644 index 000000000..b445f4d47 --- /dev/null +++ b/ports/cppcodec/portfile.cmake @@ -0,0 +1,24 @@ +include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO tplgy/cppcodec
+ REF v0.2
+ SHA512 50c9c81cdb12560c87e513e1fd22c1ad24ea37b7d20a0e3044d43fb887f4c6494c69468e4d0811cd2fc1ae8fdb01b01cfb9f3cfdd8611d4bb0221cbd38cbead3
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DBUILD_TESTING=OFF
+
+)
+
+vcpkg_install_cmake()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
+
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
+
|
