mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 19:36:48 +02:00
57 lines
1.5 KiB
Text
57 lines
1.5 KiB
Text
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=aws-lc
|
|
pkgver=1.49.1
|
|
pkgrel=1
|
|
pkgdesc="General-purpose cryptographic library based on BoringSSL and OpenSSL"
|
|
url="https://github.com/aws/aws-lc"
|
|
# armhf, armv7, ppc64le, s390x: tests fail
|
|
arch="all !armhf !armv7 !ppc64le !s390x"
|
|
license="(Apache-2.0 OR ISC) AND BSD-3-Clause AND MIT AND OpenSSL"
|
|
provider_priority=10 # lowest (other provider is openssl)
|
|
pcprefix="$pkgname:" # avoid mix up with openssl pkg-config
|
|
sonameprefix="$pkgname:" # avoid mix up with openssl
|
|
makedepends="
|
|
cmake
|
|
go
|
|
perl-dev
|
|
samurai
|
|
"
|
|
depends_dev="!openssl-dev"
|
|
subpackages="
|
|
$pkgname-dev
|
|
$pkgname-tools
|
|
"
|
|
source="https://github.com/aws/aws-lc/archive/v$pkgver/aws-lc-$pkgver.tar.gz
|
|
move-cmake-dirs.patch
|
|
"
|
|
options="net" # for go test runner to download modules
|
|
|
|
build() {
|
|
cmake -B build -G Ninja \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
-DBUILD_TESTING="$(want_check && echo ON || echo OFF)" \
|
|
-DCMAKE_BUILD_TYPE=None
|
|
cmake --build build
|
|
}
|
|
|
|
check() {
|
|
timeout 30m cmake --build build --target run_tests
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
|
|
tools() {
|
|
pkgdesc="$pkgdesc (tools)"
|
|
|
|
amove usr/bin
|
|
}
|
|
|
|
sha512sums="
|
|
31f9e13ec4dae1df62958d3e1f4717d5bf0c990de28885badb8c16b984185a2e86df37b56a994722cbcde7de94c24ca462a7bfa43dc4947cfe3d0782ea9b7413 aws-lc-1.49.1.tar.gz
|
|
fe3e89ddac28ac8174560e6d86a3d29b1ada3a4de85c5917294e580832a27c9523f1cd35cac04fbff5d9a6d873489ebb614873d8328d306863dcbfc0e26f3a0b move-cmake-dirs.patch
|
|
"
|