mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2026-11-20 15:06:14 -05:00
Prefer Native Shell on supported Linux installations
This commit is contained in:
37 files changed
+869
-250
No files matched your search
@@ -45,6 +45,8 @@ source="$pkgname-$pkgver.tar.gz"
|
||||
builddir="$srcdir/$pkgname-$pkgver"
|
||||
install="$pkgname.post-deinstall"
|
||||
options="!check"
|
||||
# GTK4 is loaded only by the optional Native Shell. Keep dependency tracing for the rest of the package.
|
||||
somask="libgtk-4.so.1 libgraphene-1.0.so.0"
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
@@ -64,6 +66,7 @@ package() {
|
||||
|
||||
make install \
|
||||
DESTDIR="$pkgdir" \
|
||||
INCLUDE_GUI="${INCLUDE_GUI:-0}" \
|
||||
BUILD_GUI_HELPER="${BUILD_GUI_HELPER:-1}"
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,9 @@ install:
|
||||
install -Dm755 artifacts/usr/bin/gpgui-helper $(DESTDIR)/usr/bin/gpgui-helper
|
||||
|
||||
if [ -f artifacts/usr/bin/gpgui ]; then \
|
||||
install -Dm755 artifacts/usr/bin/gpgui $(DESTDIR)/usr/bin/gpgui; \
|
||||
install -Dm755 artifacts/usr/bin/gpgui $(DESTDIR)/usr/bin/gpgui && \
|
||||
install -Dm755 artifacts/usr/bin/gpgui-nsh $(DESTDIR)/usr/bin/gpgui-nsh && \
|
||||
install -Dm644 artifacts/usr/share/licenses/globalprotect-openconnect/ICU4X-LICENSE.txt $(DESTDIR)/usr/share/licenses/globalprotect-openconnect/ICU4X-LICENSE.txt; \
|
||||
fi
|
||||
|
||||
install -Dm755 artifacts/usr/libexec/gpclient/vpnc-script $(DESTDIR)/usr/libexec/gpclient/vpnc-script
|
||||
@@ -37,6 +39,7 @@ uninstall:
|
||||
rm -f $(DESTDIR)/usr/bin/gpauth
|
||||
rm -f $(DESTDIR)/usr/bin/gpgui-helper
|
||||
rm -f $(DESTDIR)/usr/bin/gpgui
|
||||
rm -f $(DESTDIR)/usr/bin/gpgui-nsh $(DESTDIR)/usr/share/licenses/globalprotect-openconnect/ICU4X-LICENSE.txt
|
||||
|
||||
rm -f $(DESTDIR)/usr/libexec/gpclient/vpnc-script
|
||||
rm -f $(DESTDIR)/usr/libexec/gpclient/gp-vpnc-script-installer
|
||||
|
||||
@@ -11,3 +11,7 @@ export PATH := /usr/lib/rust-@RUST_VERSION@/bin:/usr/local/cargo/bin:$(PATH)
|
||||
which cargo
|
||||
which rustc
|
||||
dh $@ --no-parallel
|
||||
|
||||
# Native Shell checks its optional runtime on launch.
|
||||
override_dh_shlibdeps:
|
||||
dh_shlibdeps -X/bin/gpgui-nsh
|
||||
@@ -35,6 +35,7 @@ Requires: xdg-utils
|
||||
Conflicts: globalprotect-openconnect-snapshot
|
||||
|
||||
%global debug_package %{nil}
|
||||
%global __requires_exclude_from ^%{_bindir}/gpgui-nsh$
|
||||
|
||||
%description
|
||||
A GUI for GlobalProtect VPN, based on OpenConnect, supports the SSO authentication method.
|
||||
@@ -57,14 +58,17 @@ fi
|
||||
%build
|
||||
# The injected RUSTFLAGS could fail the build
|
||||
unset RUSTFLAGS
|
||||
make build
|
||||
make build INCLUDE_GUI=%{?include_gui}%{!?include_gui:0}
|
||||
|
||||
%install
|
||||
%make_install
|
||||
%make_install INCLUDE_GUI=%{?include_gui}%{!?include_gui:0}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/*
|
||||
%if 0%{?include_gui}
|
||||
%license %{_datadir}/licenses/%{name}/ICU4X-LICENSE.txt
|
||||
%endif
|
||||
%{_libexecdir}/gpclient/vpnc-script
|
||||
%{_libexecdir}/gpclient/gp-hip-script-installer
|
||||
%{_libexecdir}/gpclient/gp-vpnc-script-installer
|
||||
|
||||
Reference in new issue
Block a user