mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-08 18:22:30 +01:00
43 lines
1.4 KiB
Plaintext
43 lines
1.4 KiB
Plaintext
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=openvpn3
|
|
pkgver=3.8.3
|
|
pkgrel=0
|
|
pkgdesc="C++ class library that implements the functionality of an OpenVPN client"
|
|
url="https://github.com/OpenVPN/openvpn3"
|
|
arch="all !s390x" # broken tests due to endianness assumptions
|
|
license="AGPL-3.0-only"
|
|
depends_dev="lz4-dev asio-dev libcap-dev jsoncpp-dev xxhash-dev"
|
|
makedepends="cmake samurai gtest-dev $depends_dev"
|
|
subpackages="$pkgname-dev"
|
|
source="https://github.com/OpenVPN/openvpn3/archive/refs/tags/release/$pkgver/openvpn3-$pkgver.tar.gz
|
|
unvendor.patch
|
|
"
|
|
builddir="$srcdir/openvpn3-release-$pkgver"
|
|
|
|
build() {
|
|
cmake -G Ninja -B build \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DBUILD_SHARED_LIBS=False \
|
|
-DCMAKE_BUILD_TYPE=MinSizeRel
|
|
cmake --build build
|
|
}
|
|
|
|
check() {
|
|
cd build
|
|
test/unittests/coreUnitTests \
|
|
--gtest_filter=-buffer_ip.ipv6
|
|
}
|
|
|
|
package() {
|
|
# no cmake install target
|
|
install -Dm755 build/test/ovpncli/ovpncli -t "$pkgdir"/usr/bin
|
|
mkdir "$pkgdir"/usr/include
|
|
mv openvpn "$pkgdir"/usr/include
|
|
}
|
|
|
|
sha512sums="
|
|
8a76ee813df53cc61b108ca62aa41c69e745879971b0113c31b297f0a0a3efbb2ddc617a2aea1832d110fc33737c7903ddf6dabcfa79688020d0e24141dec481 openvpn3-3.8.3.tar.gz
|
|
83bf9085f97a08abccb583a5bd0b15258594b2746e45128c1f987445a92c1de0ea6ef80b750a12dab4baf4aba6fe94d44ff4e8b886796bd107e5cd3568755c5d unvendor.patch
|
|
"
|