void-packages/srcpkgs/fcitx5/patches/xbps-src-download.patch
Đoàn Trần Công Danh 1e657f7c21 fcitx5: update to 5.0.23.
2023-05-11 14:48:51 +07:00

10 lines
445 B
Diff

--- a/src/lib/fcitx-utils/Fcitx5Download.cmake.in
+++ b/src/lib/fcitx-utils/Fcitx5Download.cmake.in
@@ -1,4 +1,7 @@
if (NOT EXISTS "@FCITX5_DOWNLOAD_DEST@")
+ if (DEFINED ENV{XBPS_MACHINE})
+ message(FATAL_ERROR "Downloading @FCITX5_DOWNLOAD_URL@ is forbidden inside xbps-src")
+ endif()
message(STATUS "Downloading '@FCITX5_DOWNLOAD_URL@' to '@FCITX5_DOWNLOAD_DEST@'...")
file(DOWNLOAD
"@FCITX5_DOWNLOAD_URL@"