aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLily <47812810+wangli28@users.noreply.github.com>2019-08-10 06:02:57 +0800
committerdan-shaw <51385773+dan-shaw@users.noreply.github.com>2019-08-09 15:02:57 -0700
commit9dfab115aaee2550ad8cf23bfb28a84ff581c936 (patch)
tree2adb39dcae2608dde17561c5bbb653e181c20c30
parentd329b58c749463e7603ab2f987e2fc56408e97bb (diff)
downloadvcpkg-9dfab115aaee2550ad8cf23bfb28a84ff581c936.tar.gz
vcpkg-9dfab115aaee2550ad8cf23bfb28a84ff581c936.zip
[duckx] Add new port (#7561)
* [duckx] Add new port * [duckx] Add new port
-rw-r--r--ports/duckx/CONTROL4
-rw-r--r--ports/duckx/portfile.cmake20
2 files changed, 24 insertions, 0 deletions
diff --git a/ports/duckx/CONTROL b/ports/duckx/CONTROL
new file mode 100644
index 000000000..59dda99b7
--- /dev/null
+++ b/ports/duckx/CONTROL
@@ -0,0 +1,4 @@
+Source: duckx
+Version: 2019-08-06
+Homepage: https://github.com/amiremohamadi/DuckX
+Description: DuckX is a library for creation of Office docx files.
diff --git a/ports/duckx/portfile.cmake b/ports/duckx/portfile.cmake
new file mode 100644
index 000000000..66bcdff25
--- /dev/null
+++ b/ports/duckx/portfile.cmake
@@ -0,0 +1,20 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO amiremohamadi/DuckX
+ REF 98c946ad13559c03e9c7f2b050b9f70d5caf509e
+ SHA512 20e8970a1faff6e2ff5bc106bd038396d05ace3517ac83583712263870c4b007ebc407b5d69c482f7117ac155aa85f9928d5ee524f75897e8e12eb3659d16c15
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+
+vcpkg_install_cmake()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
+
+file(COPY ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/duckx)
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/duckx RENAME copyright)