zip: fix build for some distros (#37) (#38)

libzip 1.10.1 is not available on some distributions. This patch
introduces a workaround to fix the build instead of jumping to
1.10.1 release.
This commit is contained in:
Eric Leblond 2024-04-20 13:23:33 +02:00 committed by GitHub
parent 0a53b9957f
commit cab4746180
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -20,7 +20,7 @@ configure_file(hyprcursor.pc.in hyprcursor.pc @ONLY)
set(CMAKE_CXX_STANDARD 23)
find_package(PkgConfig REQUIRED)
pkg_check_modules(deps REQUIRED IMPORTED_TARGET hyprlang>=0.4.2 libzip>=1.10.1 cairo librsvg-2.0 tomlplusplus)
pkg_check_modules(deps REQUIRED IMPORTED_TARGET hyprlang>=0.4.2 libzip cairo librsvg-2.0 tomlplusplus)
if(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG)
message(STATUS "Configuring hyprcursor in Debug")

View File

@ -11,6 +11,10 @@
#include "manifest.hpp"
#include "meta.hpp"
#ifndef ZIP_LENGTH_TO_END
#define ZIP_LENGTH_TO_END -1
#endif
enum eOperation {
OPERATION_CREATE = 0,
OPERATION_EXTRACT = 1,