# Contributor: Holger Jaekel # Maintainer: pkgname=aws-c-s3 pkgver=0.3.14 pkgrel=1 pkgdesc="AWS C99 library implementation for communicating with the S3 service" url="https://github.com/awslabs/aws-c-s3" # s390x: aws-c-common # arm*, ppc64le: aws-c-io arch="all !armhf !armv7 !ppc64le !s390x" license="Apache-2.0" makedepends=" aws-c-auth-dev aws-c-cal-dev aws-c-common-dev aws-c-compression-dev aws-c-http-dev aws-c-io-dev aws-c-sdkutils-dev aws-checksums-dev cmake curl-dev s2n-tls-dev samurai " subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/awslabs/aws-c-s3/archive/refs/tags/v$pkgver.tar.gz" options="!check" # The unit tests require an AWS account with S3 buckets set up in a particular way. build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi CFLAGS="$CFLAGS -flto=auto" \ CXXFLAGS="$CXXFLAGS -flto=auto" \ cmake -B build -G Ninja \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=/usr/lib \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=None \ -DBUILD_TESTING="$(want_check && echo ON || echo OFF)" \ $CMAKE_CROSSOPTS cmake --build build } check() { ctest --test-dir build --output-on-failure -j${JOBS:-2} } package() { DESTDIR="$pkgdir" cmake --install build } dev() { default_dev amove usr/lib/aws-c-s3 } sha512sums=" b4ce2eff12b56f157cfe6b48a63d15f8b554caf94e82d6ebf78170ff646e20bf89c35e8d11dd5904ed106501a7e5e7a80c9840f34ebd5c8756aaec35b27014cb aws-c-s3-0.3.14.tar.gz "