# Contributor: Holger Jaekel # Maintainer: psykose pkgname=aws-c-s3 pkgver=0.2.6 pkgrel=0 pkgdesc="AWS C99 library implementation for communicating with the S3 service" url="https://github.com/awslabs/aws-c-s3" # s390x: aws-c-common # ppc64le: aws-c-io arch="all !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=" cbd99103653d95f52d463d2000ebd9c46729ab6df29f8a77a082f7009e71e4c21e0342f945dc9282a92b03136e8830269c4c663f8b2987a4f7677fd9a8d523d7 aws-c-s3-0.2.6.tar.gz "