mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-06 00:34:41 +02:00
55 lines
1.4 KiB
Text
55 lines
1.4 KiB
Text
# Contributor: Holger Jaekel <holger.jaekel@gmx.de>
|
|
maintainer="fossdd <fossdd@pwned.life>"
|
|
pkgname=aws-c-s3
|
|
pkgver=0.8.0
|
|
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
|
|
arch="all !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
|
|
local 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)" \
|
|
$crossopts
|
|
cmake --build build
|
|
}
|
|
|
|
check() {
|
|
ctest --test-dir build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
|
|
sha512sums="
|
|
45868aeca1602ca1590d197df5d10ca73844819b471b6268c33f12c073568457170fa5a8de40a2f92f304a112e58729b7e591c9db12c7b919ba7caf5b5a1d2f0 aws-c-s3-0.8.0.tar.gz
|
|
"
|