* add aws-c-auth

This commit is contained in:
Alexander Baldeck 2025-02-07 12:30:39 +01:00
parent 58f7827cf5
commit 112968022c
3 changed files with 64 additions and 0 deletions

18
aws-c-auth/.SRCINFO Normal file
View File

@ -0,0 +1,18 @@
pkgbase = aws-c-auth
pkgdesc = C99 library implementation of AWS client-side authentication: standard credentials providers and signing
pkgver = 0.8.4
pkgrel = 1
url = https://github.com/awslabs/aws-c-auth
arch = x86_64
license = Apache-2.0
makedepends = cmake
depends = aws-c-cal
depends = aws-c-common
depends = aws-c-http
depends = aws-c-io
depends = aws-c-sdkutils
depends = glibc
source = aws-c-auth-0.8.4.tar.gz::https://github.com/awslabs/aws-c-auth/archive/v0.8.4.tar.gz
sha256sums = 5a49b43aba7d2be6217b73dc40256120d31a7d0ca2c3f96d06e5154beed5de7a
pkgname = aws-c-auth

View File

@ -0,0 +1,4 @@
[aws-c-auth]
source = "git"
git = "https://github.com/awslabs/aws-c-auth.git"
prefix = "v"

42
aws-c-auth/PKGBUILD Normal file
View File

@ -0,0 +1,42 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Anatol Pomozov
# Maintainer: Carl Smedstad <carsme@archlinux.org>
pkgname=aws-c-auth
pkgver=0.8.4
pkgrel=1
pkgdesc='C99 library implementation of AWS client-side authentication: standard credentials providers and signing'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url='https://github.com/awslabs/aws-c-auth'
license=(Apache-2.0)
depends=(
aws-c-cal
aws-c-common
aws-c-http
aws-c-io
aws-c-sdkutils
glibc
)
makedepends=(cmake)
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('5a49b43aba7d2be6217b73dc40256120d31a7d0ca2c3f96d06e5154beed5de7a')
build() {
cd $pkgname-$pkgver
cmake -S . -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-Wno-dev \
-DBUILD_SHARED_LIBS=ON
cmake --build build
}
check() {
cd $pkgname-$pkgver
cmake --build build --target test
}
package() {
cd $pkgname-$pkgver
DESTDIR="$pkgdir" cmake --install build
}