alpine-overlay/kubezero/openvpn3/APKBUILD

42 lines
1.2 KiB
Plaintext

# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=openvpn3
pkgver=3.10.4
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"
makedepends="cmake samurai gtest-dev lz4-dev asio-dev libcap-dev jsoncpp-dev xxhash-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() {
sh
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="
3309c7f7581fabc93615d118cb4dc7a4fd163bfd23910b021b2c3f350996f2d92c8745fb7de213a25277f165ac8b0dafd6aaf5104039ff76394e4c65b376de38 openvpn3-3.10.4.tar.gz
"