aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>2019-05-05 23:18:18 -0700
committerGriffin Downs <35574547+grdowns@users.noreply.github.com>2019-05-05 23:18:18 -0700
commit820626350f459a408bd0d324e5c8de1a721e5aa4 (patch)
treecd5fedecc67ef1576dd5f31802f003a4a9459e07
parent4c7f464233fd50f7a41e4cb97d4cf311213ecc54 (diff)
downloadvcpkg-820626350f459a408bd0d324e5c8de1a721e5aa4.tar.gz
vcpkg-820626350f459a408bd0d324e5c8de1a721e5aa4.zip
[Z85] Add new port (#6315)
-rw-r--r--ports/z85/CONTROL3
-rw-r--r--ports/z85/portfile.cmake19
2 files changed, 22 insertions, 0 deletions
diff --git a/ports/z85/CONTROL b/ports/z85/CONTROL
new file mode 100644
index 000000000..24fc16050
--- /dev/null
+++ b/ports/z85/CONTROL
@@ -0,0 +1,3 @@
+Source: z85
+Version: 1.0
+Description: Z85 is a binary-to-text encoding library. It implements ZeroMQ Base-85 Encoding Algorithm and provides custom padding. \ No newline at end of file
diff --git a/ports/z85/portfile.cmake b/ports/z85/portfile.cmake
new file mode 100644
index 000000000..578b46ba3
--- /dev/null
+++ b/ports/z85/portfile.cmake
@@ -0,0 +1,19 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO artemkin/z85
+ REF v1.0
+ SHA512 6b205524b8388c5709ca664a595a4db8fdd24148c5f87ef7ef16d6d6eb60d2c51db0b4ab768fe9ac3e5acf5e3fe1b46ef5b9f5e7f69a53fe40a7e8d25b098479
+ HEAD_REF master
+)
+
+# Install source files
+file(INSTALL ${SOURCE_PATH}/src/z85.h
+ ${SOURCE_PATH}/src/z85.c
+ ${SOURCE_PATH}/src/z85.hpp
+ ${SOURCE_PATH}/src/z85_impl.cpp
+ DESTINATION ${CURRENT_PACKAGES_DIR}/include/${PORT})
+
+# Install license
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)