From a61fdd42c400ab6dd4bd236570d1fe8dbddc4f7b Mon Sep 17 00:00:00 2001 From: kth5 Date: Fri, 7 Feb 2025 12:49:09 +0100 Subject: [PATCH] * add aws-crt-cpp --- aws-crt-cpp/.SRCINFO | 28 +++++++++++++++++++++ aws-crt-cpp/.nvchecker.toml | 4 +++ aws-crt-cpp/PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++ 3 files changed, 81 insertions(+) create mode 100644 aws-crt-cpp/.SRCINFO create mode 100644 aws-crt-cpp/.nvchecker.toml create mode 100644 aws-crt-cpp/PKGBUILD diff --git a/aws-crt-cpp/.SRCINFO b/aws-crt-cpp/.SRCINFO new file mode 100644 index 0000000000..2551729432 --- /dev/null +++ b/aws-crt-cpp/.SRCINFO @@ -0,0 +1,28 @@ +pkgbase = aws-crt-cpp + pkgdesc = C++ wrapper around the aws-c-* libraries. Provides Cross-Platform Transport Protocols and SSL/TLS implementations for C++. + pkgver = 0.30.1 + pkgrel = 1 + url = https://github.com/awslabs/aws-crt-cpp + arch = x86_64 + arch = powerpc64le + arch = powerpc64 + arch = powerpc + arch = riscv64 + license = Apache-2.0 + makedepends = cmake + depends = aws-c-auth + depends = aws-c-cal + depends = aws-c-common + depends = aws-c-event-stream + depends = aws-c-http + depends = aws-c-io + depends = aws-c-mqtt + depends = aws-c-s3 + depends = aws-c-sdkutils + depends = aws-checksums + depends = gcc-libs + depends = glibc + source = aws-crt-cpp-0.30.1.tar.gz::https://github.com/awslabs/aws-crt-cpp/archive/v0.30.1.tar.gz + sha256sums = c83f9915333b6052f5a5ad1920405a5922a3fbf4732021f98dabc240cc1037d0 + +pkgname = aws-crt-cpp diff --git a/aws-crt-cpp/.nvchecker.toml b/aws-crt-cpp/.nvchecker.toml new file mode 100644 index 0000000000..f3a0983f5f --- /dev/null +++ b/aws-crt-cpp/.nvchecker.toml @@ -0,0 +1,4 @@ +[aws-crt-cpp] +source = "git" +git = "https://github.com/awslabs/aws-crt-cpp.git" +prefix = "v" diff --git a/aws-crt-cpp/PKGBUILD b/aws-crt-cpp/PKGBUILD new file mode 100644 index 0000000000..94a2cc0659 --- /dev/null +++ b/aws-crt-cpp/PKGBUILD @@ -0,0 +1,49 @@ +# POWER Maintainer: Alexander Baldeck +# Maintainer: Anatol Pomozov +# Maintainer: Carl Smedstad + +pkgname=aws-crt-cpp +pkgver=0.30.1 +pkgrel=1 +pkgdesc='C++ wrapper around the aws-c-* libraries. Provides Cross-Platform Transport Protocols and SSL/TLS implementations for C++.' +arch=(x86_64 powerpc64le powerpc64 powerpc riscv64) +url='https://github.com/awslabs/aws-crt-cpp' +license=(Apache-2.0) +depends=( + aws-c-auth + aws-c-cal + aws-c-common + aws-c-event-stream + aws-c-http + aws-c-io + aws-c-mqtt + aws-c-s3 + aws-c-sdkutils + aws-checksums + gcc-libs + glibc +) +makedepends=(cmake) +source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") +sha256sums=('c83f9915333b6052f5a5ad1920405a5922a3fbf4732021f98dabc240cc1037d0') + +build() { + cd $pkgname-$pkgver + cmake -S . -B build \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -Wno-dev \ + -DBUILD_SHARED_LIBS=ON \ + -DBUILD_DEPS=OFF + cmake --build build +} + +check() { + cd $pkgname-$pkgver + cmake --build build --target test +} + +package() { + cd $pkgname-$pkgver + DESTDIR="$pkgdir" cmake --install build +}