mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-20 13:02:31 +01:00
67 lines
1.7 KiB
Plaintext
67 lines
1.7 KiB
Plaintext
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=aws-lc
|
|
pkgver=1.48.1
|
|
pkgrel=0
|
|
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() {
|
|
local allow_fail='no'
|
|
case "$CARCH" in
|
|
aarch64)
|
|
# tests pass on CI in under 15 minutes,
|
|
# but keep getting stuck on the builders
|
|
allow_fail='yes' ;;
|
|
esac
|
|
|
|
timeout 30m cmake --build build --target run_tests \
|
|
|| [ "$allow_fail" = yes ]
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
|
|
tools() {
|
|
pkgdesc="$pkgdesc (tools)"
|
|
|
|
amove usr/bin
|
|
}
|
|
|
|
sha512sums="
|
|
a1b2e121ad8051c9b7f07690623beb71a3706f9eb422f6978bc03cb8071cff1e360981be1b4d19c3da8725e12f7b458efbe8c773cb5f9784fea9c4030755f3ef aws-lc-1.48.1.tar.gz
|
|
a9d1d4d785c7efaee967b150c25779488786d7941be4990fd01a9f18225c91c2dfc40e16bbf0b52283aa37c3abd20ed27d1440eadaf2e1e2be8b852caa0bf241 move-cmake-dirs.patch
|
|
"
|