blob: 09b5f71c14dfc6779831a9baecaeedbd582a038b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Maintainer: OpenSourcerer <alex at opensourcery dot eu>
pkgname=hummingbird
_pkgname=AirVPN-Suite
pkgver=1.3.0
pkgrel=2
_commit="ef5ce5ad8fff24f3476f3a072f44d31a5cd1d3fc"
pkgdesc="FLOSS OpenVPN3 client using AirVPN's OpenVPN3 library fork"
arch=('x86_64' 'armv7l' 'aarch64')
url="https://gitlab.com/AirVPN/$_pkgname"
license=('GPL3')
provides=('hummingbird-bin')
conflicts=('hummingbird-bin' 'airvpn-suite' 'airvpn-suite-bin' 'airvpn-suite-beta-bin')
depends=('crypto++' 'curl' 'zlib' 'lz4' 'openssl' 'zstd' 'xz' 'glibc' 'gcc-libs')
makedepends=('git' 'wget' 'wireguard-tools' 'python')
source=("git+$url.git#commit=$_commit")
sha256sums=('SKIP')
changelog="Changelog.txt"
build() {
# set vars needed by original OpenVPN3 build scripts
export O3="$srcdir/O3" && mkdir "$O3"
export DEP_DIR="$O3/deps" && mkdir "$DEP_DIR"
export DL="$O3/dl" && mkdir "$DL"
cd "$O3"
# clone and build OpenVPN3 core
git clone https://github.com/AirVPN/openvpn3-airvpn.git core
cd core/scripts/linux
./build-all
# move directories around for the client build script
cd "$srcdir"
mv "$O3/core" "$srcdir/openvpn3-airvpn"
mv "$O3/deps/asio" "$srcdir"
# build the client
cd "$_pkgname"
mkdir obj
cp /usr/share/wireguard-tools/examples/embeddable-wg-library/wireguard.? src/
cp /usr/share/wireguard-tools/examples/embeddable-wg-library/wireguard.h src/include/
./build-hummingbird.sh
}
package() {
cd $srcdir/$_pkgname
# place binaries
install -Dm755 hummingbird "$pkgdir/usr/bin/hummingbird"
# place documentation
install -Dm755 README.md "$pkgdir/usr/share/doc/hummingbird/README.md"
# place license
install -Dm755 LICENSE.md "$pkgdir/usr/share/licenses/hummingbird/LICENSE.md"
}
|