diff options
Diffstat (limited to 'vcpkg/ports/kf6archive')
| -rw-r--r-- | vcpkg/ports/kf6archive/portfile.cmake | 34 | ||||
| -rw-r--r-- | vcpkg/ports/kf6archive/vcpkg.json | 60 |
2 files changed, 94 insertions, 0 deletions
diff --git a/vcpkg/ports/kf6archive/portfile.cmake b/vcpkg/ports/kf6archive/portfile.cmake new file mode 100644 index 0000000..ec7b8ab --- /dev/null +++ b/vcpkg/ports/kf6archive/portfile.cmake @@ -0,0 +1,34 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO KDE/karchive + REF "v${VERSION}" + SHA512 f87fd53ba029b05d3c233ea8d8a9dbb7b2aba2aec55a38b26cfd0f6e1c49d8c1297c06d634175ccc5bbbce00261a3387a2da3c705011e9cbae538eae2723fef3 + HEAD_REF master +) + +vcpkg_find_acquire_program(PKGCONFIG) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + DISABLE_PARALLEL_CONFIGURE + OPTIONS + -DBUILD_TESTING=OFF + -DPKG_CONFIG_EXECUTABLE=${PKGCONFIG} +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/KF6Archive) +vcpkg_copy_pdbs() + +# Static builds should not have libraries in the bin directory +if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") + file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin") +endif() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin/data") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin/data") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +file(GLOB LICENSE_FILES "${SOURCE_PATH}/LICENSES/*") +vcpkg_install_copyright(FILE_LIST ${LICENSE_FILES}) diff --git a/vcpkg/ports/kf6archive/vcpkg.json b/vcpkg/ports/kf6archive/vcpkg.json new file mode 100644 index 0000000..0248493 --- /dev/null +++ b/vcpkg/ports/kf6archive/vcpkg.json @@ -0,0 +1,60 @@ +{ + "name": "kf6archive", + "version": "6.7.0", + "description": "File compression", + "homepage": "https://api.kde.org/frameworks/karchive/html/index.html", + "license": "LGPL-2.0-or-later", + "supports": "!xbox", + "dependencies": [ + "bzip2", + "ecm", + "liblzma", + "openssl", + "qtbase", + { + "name": "qttools", + "features": [ + "linguist" + ] + }, + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + }, + "zlib", + "zstd" + ], + "default-features": [ + "bzip2" + ], + "features": { + "bzip2": { + "description": "Support for bzip2 compressed files and data streams", + "dependencies": [ + "bzip2" + ] + }, + "lzma": { + "description": "Support for xz compressed files and data streams", + "dependencies": [ + "liblzma" + ] + }, + "openssl": { + "description": "Support for compressed encrypted files and data streams", + "dependencies": [ + "openssl" + ] + }, + "zstd": { + "description": "Support for zstd compressed files and data streams", + "dependencies": [ + "zstd" + ] + } + } +} |