Date: Monday, October 11, 2021 @ 15:59:20 Author: anatolik Revision: 1029478
Add aws-c-http to [community] Added: aws-c-http/ aws-c-http/repos/ aws-c-http/trunk/ aws-c-http/trunk/PKGBUILD ----------+ PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) Added: aws-c-http/trunk/PKGBUILD =================================================================== --- aws-c-http/trunk/PKGBUILD (rev 0) +++ aws-c-http/trunk/PKGBUILD 2021-10-11 15:59:20 UTC (rev 1029478) @@ -0,0 +1,32 @@ +# Maintainer: Anatol Pomozov + +pkgname=aws-c-http +pkgver=0.6.7 +pkgrel=1 +pkgdesc='C99 implementation of the HTTP/1.1 and HTTP/2 specifications' +arch=(x86_64) +url='https://github.com/awslabs/aws-c-http' +license=(Apache) +depends=(aws-c-common aws-c-compression aws-c-io) +makedepends=(cmake) +source=(aws-c-http-$pkgver.zip::https://github.com/awslabs/aws-c-http/archive/v$pkgver.zip) +sha256sums=('1c728a90a2aa7a460213c7216e462c7890ad22981e5a46113d0a315026c99ead') + +build() { + cd aws-c-http-$pkgver + + cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=ON -S . -B build + cmake --build build +} + +check() { + cd aws-c-http-$pkgver + cmake --build build --target test +} + +package() { + cd aws-c-http-$pkgver + + cmake --build build --target install -- DESTDIR="$pkgdir/" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}