File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -409,6 +409,17 @@ init-apk: clean-apk tarball
409409 checksum=$$(sha512sum .build/apk/${PKG}.tar.gz | cut -d' ' -f1); \
410410 sed -i "s/@SHA512@/$$checksum/g" .build/apk/APKBUILD
411411
412+ # Remove the GUI dependencies if BUILD_GUI_HELPER is set to 0
413+ if [ $(BUILD_GUI_HELPER) -eq 0 ]; then \
414+ sed -i "/^\tlibayatana-appindicator$$/d" .build/apk/APKBUILD; \
415+ sed -i "/^\tlibsecret$$/d" .build/apk/APKBUILD; \
416+ fi
417+
418+ # Remove the WebKitGTK dependency only if neither gpauth webview auth nor gpgui-helper needs it
419+ if [ $(BUILD_GUI_HELPER) -eq 0 ] && [ $(BUILD_WEBVIEW_AUTH) -eq 0 ]; then \
420+ sed -i "/^\twebkit2gtk-4.1$$/d" .build/apk/APKBUILD; \
421+ fi
422+
412423apk : init-apk
413424 cd .build/apk && abuild -r -P " $( CURDIR) /.build/apk/packages"
414425
You can’t perform that action at this time.
0 commit comments