* add aws-c-http

This commit is contained in:
Alexander Baldeck 2025-02-07 11:54:20 +01:00
parent d0fad7a094
commit e4bc81c824
3 changed files with 66 additions and 0 deletions

21
aws-c-http/.SRCINFO Normal file
View File

@ -0,0 +1,21 @@
pkgbase = aws-c-http
pkgdesc = C99 implementation of the HTTP/1.1 and HTTP/2 specifications
pkgver = 0.9.3
pkgrel = 1
url = https://github.com/awslabs/aws-c-http
arch = x86_64
arch = powerpc64le
arch = powerpc64
arch = powerpc
arch = riscv64
license = Apache-2.0
makedepends = cmake
depends = aws-c-cal
depends = aws-c-common
depends = aws-c-compression
depends = aws-c-io
depends = glibc
source = aws-c-http-0.9.3.tar.gz::https://github.com/awslabs/aws-c-http/archive/v0.9.3.tar.gz
sha256sums = 63061321fd3234a4f8688cff1a6681089321519436a5f181e1bcb359204df7c8
pkgname = aws-c-http

View File

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

41
aws-c-http/PKGBUILD Normal file
View File

@ -0,0 +1,41 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Anatol Pomozov
# Maintainer: Carl Smedstad <carsme@archlinux.org>
pkgname=aws-c-http
pkgver=0.9.3
pkgrel=1
pkgdesc='C99 implementation of the HTTP/1.1 and HTTP/2 specifications'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url='https://github.com/awslabs/aws-c-http'
license=(Apache-2.0)
depends=(
aws-c-cal
aws-c-common
aws-c-compression
aws-c-io
glibc
)
makedepends=(cmake)
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('63061321fd3234a4f8688cff1a6681089321519436a5f181e1bcb359204df7c8')
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
}