aports/community/crypto++/APKBUILD
psykose 212793d66d community/crypto++: fix riscv64 build
the static lib isn't made there it seems
2023-04-23 16:48:42 +02:00

36 lines
880 B
Plaintext

# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=crypto++
_pkgname=cryptopp
pkgver=8.7.0
_pkgver=${pkgver//./}
pkgrel=1
pkgdesc="A free C++ class library of cryptographic schemes"
url="https://www.cryptopp.com/"
# x86: fails to build
arch="all !x86"
license="BSL-1.0"
subpackages="$pkgname-dev"
source="https://www.cryptopp.com/$_pkgname$_pkgver.zip"
builddir="$srcdir"
build() {
make dynamic libcryptopp.pc CXXFLAGS="$CXXFLAGS -flto=auto"
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" PREFIX="/usr" install-lib
# This lib is huge (48 MiB) and since we built it with LTO,
# it's unusable anyway.
rm -f "$pkgdir"/usr/lib/libcryptopp.a
}
sha512sums="
cb85e10118b247be016b40ecf79cf3ff933a174e2e3d9280c426e57eb1ad936db42eafc19a30ec9bf5d7f08c335b1fee4dc149e1bda00d44d40d84d010f6af11 cryptopp870.zip
"