mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-04-29 14:16:26 -04:00
Add build dependencies
This commit is contained in:
parent
141d66cbde
commit
3a6eca2ed2
22
Makefile
22
Makefile
@ -120,7 +120,7 @@ publish-ppa: ppa
|
|||||||
dput ppa:yuezk/globalprotect-openconnect ../*.changes
|
dput ppa:yuezk/globalprotect-openconnect ../*.changes
|
||||||
|
|
||||||
# Generate RPM sepc file
|
# Generate RPM sepc file
|
||||||
rpm-spec:
|
init-rpm:
|
||||||
rm -rf .build/rpm
|
rm -rf .build/rpm
|
||||||
mkdir -p .build/rpm
|
mkdir -p .build/rpm
|
||||||
|
|
||||||
@ -135,7 +135,7 @@ rpm-spec:
|
|||||||
sed -i "s/@DATE@/$(shell LC_ALL=en.US date -u "+%a %b %e %T %Z %Y")/g" .build/rpm/globalprotect-openconnect.changes
|
sed -i "s/@DATE@/$(shell LC_ALL=en.US date -u "+%a %b %e %T %Z %Y")/g" .build/rpm/globalprotect-openconnect.changes
|
||||||
|
|
||||||
# Ensure ../globalprotect-openconnect-*.tar.gz exists.
|
# Ensure ../globalprotect-openconnect-*.tar.gz exists.
|
||||||
rpm: rpm-spec
|
rpm: init-rpm
|
||||||
if [ ! -f ../$(PKG).tar.gz ]; then \
|
if [ ! -f ../$(PKG).tar.gz ]; then \
|
||||||
echo "Missing ../$(PKG).tar.gz"; \
|
echo "Missing ../$(PKG).tar.gz"; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
@ -156,4 +156,20 @@ rpm: rpm-spec
|
|||||||
cp $(HOME)/rpmbuild/SRPMS/$(PKG_NAME)*.rpm .build/rpm; \
|
cp $(HOME)/rpmbuild/SRPMS/$(PKG_NAME)*.rpm .build/rpm; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pkgbuild:
|
init-pkgbuild:
|
||||||
|
rm -rf .build/pkgbuild
|
||||||
|
mkdir -p .build/pkgbuild
|
||||||
|
|
||||||
|
if [ ! -f ../$(PKG).tar.gz ]; then \
|
||||||
|
echo "Missing ../$(PKG).tar.gz"; \
|
||||||
|
exit 1; \
|
||||||
|
fi
|
||||||
|
cp ../$(PKG).tar.gz .build/pkgbuild
|
||||||
|
|
||||||
|
cp packaging/pkgbuild/PKGBUILD.in .build/pkgbuild/PKGBUILD
|
||||||
|
sed -i "s/@PKG_NAME@/$(PKG_NAME)/g" .build/pkgbuild/PKGBUILD
|
||||||
|
sed -i "s/@VERSION@/$(VERSION)/g" .build/pkgbuild/PKGBUILD
|
||||||
|
sed -i "s/@REVISION@/$(REVISION)/g" .build/pkgbuild/PKGBUILD
|
||||||
|
|
||||||
|
pkgbuild: init-pkgbuild
|
||||||
|
cd .build/pkgbuild && makepkg -s --noconfirm
|
||||||
|
@ -3,7 +3,7 @@ Section: net
|
|||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: Kevin Yue <k3vinyue@gmail.com>
|
Maintainer: Kevin Yue <k3vinyue@gmail.com>
|
||||||
Standards-Version: 4.1.4
|
Standards-Version: 4.1.4
|
||||||
Build-Depends: debhelper (>= 9), make (>= 4), openconnect (>= 8.20), libxml2, libsecret-1-0, libayatana-appindicator3-1, libwebkit2gtk-4.0-37, libgtk-3-0, gnome-keyring
|
Build-Depends: debhelper (>= 9), pkg-config, rust (>= 1.74), cargo (>= 1.74), jq (>= 1), make (>= 4), openconnect (>= 8.20), libxml2, libsecret-1-0, libayatana-appindicator3-1, libwebkit2gtk-4.0-37, libgtk-3-0, gnome-keyring
|
||||||
Homepage: https://github.com/yuezk/GlobalProtect-openconnect
|
Homepage: https://github.com/yuezk/GlobalProtect-openconnect
|
||||||
|
|
||||||
Package: globalprotect-openconnect
|
Package: globalprotect-openconnect
|
||||||
|
30
packaging/pkgbuild/PKGBUILD.in
Normal file
30
packaging/pkgbuild/PKGBUILD.in
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# Maintainer: Keinv Yue <k3vinyue@gmail.com>
|
||||||
|
|
||||||
|
_pkgname=@PKG_NAME@
|
||||||
|
pkgname=${_pkgname}
|
||||||
|
pkgver="@VERSION@"
|
||||||
|
pkgrel=@REVISION@
|
||||||
|
pkgdesc="A GUI for GlobalProtect VPN, based on OpenConnect, supports the SSO authentication method."
|
||||||
|
arch=('x86_64' 'aarch64')
|
||||||
|
url="https://github.com/yuezk/GlobalProtect-openconnect"
|
||||||
|
license=('GPL3')
|
||||||
|
makedepends=('make' 'pkg-config' 'rust' 'cargo' 'jq' 'webkit2gtk' 'curl' 'wget' 'file' 'openssl' 'appmenu-gtk-module' 'gtk3' 'libappindicator-gtk3' 'librsvg' 'libvips' 'libayatana-appindicator' 'openconnect' 'libsecret')
|
||||||
|
depends=('openconnect>=8.20' webkit2gtk libappindicator-gtk3 libayatana-appindicator libsecret libxml2)
|
||||||
|
optdepends=('wmctrl: for window management')
|
||||||
|
|
||||||
|
provides=('globalprotect-openconnect' 'gpclient' 'gpservice' 'gpauth' 'gpgui')
|
||||||
|
|
||||||
|
source=("${_pkgname}-${pkgver}.tar.gz")
|
||||||
|
sha256sums=('SKIP')
|
||||||
|
|
||||||
|
options=('!strip')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "$pkgname-$pkgver"
|
||||||
|
make build OFFLINE=1
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$pkgname-$pkgver"
|
||||||
|
make install DESTDIR="$pkgdir"
|
||||||
|
}
|
@ -9,6 +9,10 @@ URL: https://github.com/yuezk/GlobalProtect-openconnect
|
|||||||
Source: %{name}.tar.gz
|
Source: %{name}.tar.gz
|
||||||
|
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
|
BuildRequires: rust
|
||||||
|
BuildRequires: cargo
|
||||||
|
BuildRequires: jq
|
||||||
|
BuildRequires: pkg-config
|
||||||
BuildRequires: openconnect-devel
|
BuildRequires: openconnect-devel
|
||||||
BuildRequires: openssl-devel
|
BuildRequires: openssl-devel
|
||||||
BuildRequires: curl
|
BuildRequires: curl
|
||||||
|
Loading…
x
Reference in New Issue
Block a user