# Maintainer: Anatol Pomozov pkgname=aws-c-io pkgver=0.13.21 pkgrel=1 pkgdesc='AWS SDK module to handle all IO and TLS work for application protocols' arch=(x86_64) url='https://github.com/awslabs/aws-c-io' license=(Apache) depends=(aws-c-common aws-c-cal s2n-tls) makedepends=(cmake) source=(aws-c-io-$pkgver.zip::https://github.com/awslabs/aws-c-io/archive/v$pkgver.zip) sha256sums=('1dee7a0c20a3361e7a0fae24b766bec9e81e813782a55423a0460f9fc7bfb732') build() { cd aws-c-io-$pkgver cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=ON -S . -B build cmake --build build } check() { cd aws-c-io-$pkgver cmake --build build --target test --verbose } package() { cd aws-c-io-$pkgver cmake --build build --target install -- DESTDIR="$pkgdir/" install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }