diff -U3 -r texstudio-4.7.0.orig/texstudio.pro texstudio-4.7.0/texstudio.pro
--- texstudio-4.7.0.orig/texstudio.pro	2023-11-28 03:20:38.000000000 +0700
+++ texstudio-4.7.0/texstudio.pro	2023-12-03 20:59:39.074498926 +0700
@@ -371,11 +371,9 @@
         PKGCONFIG += quazip1-qt6
     }
     !versionGreaterOrEqual($$QT_VERSION, "6.0.0") {
-            message(System quazip5)
-            isEmpty(QUAZIP_LIB): QUAZIP_LIB = -lquazip5
-            isEmpty(QUAZIP_INCLUDE): QUAZIP_INCLUDE = $${PREFIX}/include/quazip5
-            INCLUDEPATH += $${QUAZIP_INCLUDE}
-            LIBS += $${QUAZIP_LIB}
+        message(System QuaZip)
+        CONFIG += link_pkgconfig
+        PKGCONFIG += quazip1-qt5
     }
 }
 
