* add aws-c-common

This commit is contained in:
Alexander Baldeck 2025-02-07 10:38:30 +01:00
parent 6334d96d27
commit 2fa9ddb124
3 changed files with 56 additions and 0 deletions

17
aws-c-common/.SRCINFO Normal file
View File

@ -0,0 +1,17 @@
pkgbase = aws-c-common
pkgdesc = Core c99 package for AWS SDK for C. Includes cross-platform primitives, configuration, data structures, and error handling
pkgver = 0.11.0
pkgrel = 1
url = https://github.com/awslabs/aws-c-common
arch = x86_64
arch = powerpc64le
arch = powerpc64
arch = powerpc
arch = riscv64
license = Apache-2.0
makedepends = cmake
depends = glibc
source = aws-c-common-0.11.0.tar.gz::https://github.com/awslabs/aws-c-common/archive/v0.11.0.tar.gz
sha256sums = 88115d6f3e4f79d8b2544ed8a95d8a9699985aed38aeb4779d7c9fffde1fee58
pkgname = aws-c-common

View File

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

35
aws-c-common/PKGBUILD Normal file
View File

@ -0,0 +1,35 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Anatol Pomozov
# Maintainer: Carl Smedstad <carsme@archlinux.org>
pkgname=aws-c-common
pkgver=0.11.0
pkgrel=1
pkgdesc='Core c99 package for AWS SDK for C. Includes cross-platform primitives, configuration, data structures, and error handling'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url='https://github.com/awslabs/aws-c-common'
license=(Apache-2.0)
depends=(glibc)
makedepends=(cmake)
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('88115d6f3e4f79d8b2544ed8a95d8a9699985aed38aeb4779d7c9fffde1fee58')
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
}