diff --git a/aws-c-http/.SRCINFO b/aws-c-http/.SRCINFO new file mode 100644 index 0000000000..94b81f9f59 --- /dev/null +++ b/aws-c-http/.SRCINFO @@ -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 diff --git a/aws-c-http/.nvchecker.toml b/aws-c-http/.nvchecker.toml new file mode 100644 index 0000000000..5c5aa31844 --- /dev/null +++ b/aws-c-http/.nvchecker.toml @@ -0,0 +1,4 @@ +[aws-c-http] +source = "git" +git = "https://github.com/awslabs/aws-c-http.git" +prefix = "v" diff --git a/aws-c-http/PKGBUILD b/aws-c-http/PKGBUILD new file mode 100644 index 0000000000..3cbfe8832a --- /dev/null +++ b/aws-c-http/PKGBUILD @@ -0,0 +1,41 @@ +# POWER Maintainer: Alexander Baldeck +# Maintainer: Anatol Pomozov +# Maintainer: Carl Smedstad + +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 +}