diff options
Diffstat (limited to 'testing/openvpn3/APKBUILD')
-rw-r--r-- | testing/openvpn3/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/openvpn3/APKBUILD b/testing/openvpn3/APKBUILD new file mode 100644 index 00000000000..d13575a369b --- /dev/null +++ b/testing/openvpn3/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Patrycja Rosa <alpine@ptrcnull.me> +# Maintainer: Patrycja Rosa <alpine@ptrcnull.me> +pkgname=openvpn3 +pkgver=3.8.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" +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=" +2678cfc090ae65c3be03f2056ad009a708f1af13cbad904a6630d5ddf619cd7885b91c042b63c4a839d0603e754d69fe8d060b6ab7366db6ab69cecba4007da4 openvpn3-3.8.4.tar.gz +83bf9085f97a08abccb583a5bd0b15258594b2746e45128c1f987445a92c1de0ea6ef80b750a12dab4baf4aba6fe94d44ff4e8b886796bd107e5cd3568755c5d unvendor.patch +" |