1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 11:15:13 +03:00
aports/testing/crypto++/APKBUILD
Sören Tempel 0060dfb656 testing/crypto++: explicitly build static library too
Since a -static subpackage is provided, I assume the intend here is to
also build a static library. However, presently only a dynamic one is
created in the build() stage. Afterwards, the static one is created as a
byproduct in the check() stage due to $LINK_LIBRARY (which defaults to
libcryptopp.a, not libcryptopp.so) being a dependency of cryptest.exe
which is a prerequisite of the check target.

If the tests are not executed (e.g. options="!check"), creating a
-static subpackage will fail without this commit. For example, on the
riscv64 builder.
2021-07-24 16:52:07 +02:00

30 lines
809 B
Text

# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=crypto++
_pkgname=cryptopp
pkgver=8.5.0
_pkgver=${pkgver//./}
pkgrel=0
pkgdesc="A free C++ class library of cryptographic schemes"
url="https://www.cryptopp.com/"
arch="all"
license="BSL-1.0"
depends_dev="$pkgname"
subpackages="$pkgname-static $pkgname-dev"
source="https://www.cryptopp.com/$_pkgname$_pkgver.zip"
builddir="$srcdir"
build() {
make CXXFLAGS="$CXXFLAGS -DNDEBUG -fPIC" -f GNUmakefile \
dynamic static libcryptopp.pc
}
check() {
make -f GNUmakefile check
}
package() {
make DESTDIR="$pkgdir" PREFIX="/usr" install-lib
}
sha512sums="090472545c74bbf0579b56b09e8b5dcd777b38f29f7199a2e68f45d4a8c687acc82f105ba8b2a38f9aa65e5997a3d846aaf2341ab74d58b4bbfd1f5f03823b93 cryptopp850.zip"