mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-16 04:35:13 +03:00
56 lines
1.4 KiB
Text
56 lines
1.4 KiB
Text
# Contributor: Holger Jaekel <holger.jaekel@gmx.de>
|
|
maintainer="fossdd <fossdd@pwned.life>"
|
|
pkgname=aws-c-io
|
|
pkgver=0.18.1
|
|
pkgrel=0
|
|
pkgdesc="Module for the AWS SDK for C handling all IO and TLS work for application protocols"
|
|
url="https://github.com/awslabs/aws-c-io"
|
|
# s390x: aws-c-common
|
|
arch="all !s390x"
|
|
license="Apache-2.0"
|
|
makedepends="
|
|
aws-c-cal-dev
|
|
aws-c-common-dev
|
|
cmake
|
|
openssl-dev
|
|
s2n-tls-dev
|
|
samurai
|
|
"
|
|
subpackages="$pkgname-dev"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/awslabs/aws-c-io/archive/refs/tags/v$pkgver.tar.gz"
|
|
options="net" # required for tests to make connections
|
|
|
|
case "$CARCH" in
|
|
aarch64)
|
|
# broken on new networking builder setup
|
|
options="$options !check"
|
|
;;
|
|
esac
|
|
|
|
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="
|
|
85cd3de2cc1e915e7bed9318303eda437dbff1a45963d425583409d3fb6f5145c0da46ea9edad2f943bc91e456bb96eecbaf3d8f37f4a230fe15f8361804c5e1 aws-c-io-0.18.1.tar.gz
|
|
"
|