alpine-overlay/kubezero/openvpn3/APKBUILD

42 lines
1.2 KiB
Plaintext
Raw Normal View History

2024-10-25 16:22:11 +00:00
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=openvpn3
2025-01-06 17:26:58 +00:00
pkgver=3.10.4
2024-10-25 16:22:11 +00:00
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"
2025-01-06 17:26:58 +00:00
makedepends="cmake samurai gtest-dev lz4-dev asio-dev libcap-dev jsoncpp-dev xxhash-dev"
2024-10-25 16:22:11 +00:00
subpackages="$pkgname-dev"
source="https://github.com/OpenVPN/openvpn3/archive/refs/tags/release/$pkgver/openvpn3-$pkgver.tar.gz
"
2025-01-06 17:26:58 +00:00
#unvendor.patch
2024-10-25 16:22:11 +00:00
builddir="$srcdir/openvpn3-release-$pkgver"
build() {
2025-01-06 17:26:58 +00:00
sh
2024-10-25 16:22:11 +00:00
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="
2025-01-06 17:26:58 +00:00
3309c7f7581fabc93615d118cb4dc7a4fd163bfd23910b021b2c3f350996f2d92c8745fb7de213a25277f165ac8b0dafd6aaf5104039ff76394e4c65b376de38 openvpn3-3.10.4.tar.gz
2024-10-25 16:22:11 +00:00
"