aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/rapidhash
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/rapidhash')
-rw-r--r--vcpkg/ports/rapidhash/portfile.cmake11
-rw-r--r--vcpkg/ports/rapidhash/vcpkg.json7
2 files changed, 18 insertions, 0 deletions
diff --git a/vcpkg/ports/rapidhash/portfile.cmake b/vcpkg/ports/rapidhash/portfile.cmake
new file mode 100644
index 0000000..55c03ba
--- /dev/null
+++ b/vcpkg/ports/rapidhash/portfile.cmake
@@ -0,0 +1,11 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO Nicoshev/rapidhash
+ REF "rapidhash_v${VERSION}"
+ SHA512 c7097263721c01b7218358ac535625008fe6e67d274d50857472ffc7fa49849fbd1b3bb766611f1af17182b4bfa7e1ce0f3a00df5b4254c3b9040d9467f29024
+ HEAD_REF master
+)
+
+file(COPY "${SOURCE_PATH}/rapidhash.h" DESTINATION ${CURRENT_PACKAGES_DIR}/include)
+
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/rapidhash/vcpkg.json b/vcpkg/ports/rapidhash/vcpkg.json
new file mode 100644
index 0000000..241b564
--- /dev/null
+++ b/vcpkg/ports/rapidhash/vcpkg.json
@@ -0,0 +1,7 @@
+{
+ "name": "rapidhash",
+ "version": "3",
+ "description": "Very fast, high quality, platform independent hashing algorithm.",
+ "homepage": "https://github.com/Nicoshev/rapidhash",
+ "license": "BSD-2-Clause"
+}