* add aws-c-cal

This commit is contained in:
Alexander Baldeck 2025-02-07 10:47:58 +01:00
parent 2fa9ddb124
commit 98776cfce5
3 changed files with 62 additions and 0 deletions

19
aws-c-cal/.SRCINFO Normal file
View File

@ -0,0 +1,19 @@
pkgbase = aws-c-cal
pkgdesc = AWS Crypto Abstraction Layer: Cross-Platform, C99 wrapper for cryptography primitives
pkgver = 0.8.3
pkgrel = 1
url = https://github.com/awslabs/aws-c-cal
arch = x86_64
arch = powerpc64le
arch = powerpc64
arch = powerpc
arch = riscv64
license = Apache-2.0
makedepends = cmake
depends = aws-c-common
depends = glibc
depends = openssl
source = aws-c-cal-0.8.3.tar.gz::https://github.com/awslabs/aws-c-cal/archive/v0.8.3.tar.gz
sha256sums = 413a5226a881eb2d7c7b453707c90b6ad1c0f63edfc15e87087f56d7d10c2a1b
pkgname = aws-c-cal

View File

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

39
aws-c-cal/PKGBUILD Normal file
View File

@ -0,0 +1,39 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Anatol Pomozov
# Maintainer: Carl Smedstad <carsme@archlinux.org>
pkgname=aws-c-cal
pkgver=0.8.3
pkgrel=1
pkgdesc='AWS Crypto Abstraction Layer: Cross-Platform, C99 wrapper for cryptography primitives'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url='https://github.com/awslabs/aws-c-cal'
license=(Apache-2.0)
depends=(
aws-c-common
glibc
openssl
)
makedepends=(cmake)
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('413a5226a881eb2d7c7b453707c90b6ad1c0f63edfc15e87087f56d7d10c2a1b')
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
}