mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-20 21:22:35 +02:00
66 lines
1.5 KiB
Plaintext
66 lines
1.5 KiB
Plaintext
# Contributor: tcely <tcely@users.noreply.github.com>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=botan
|
|
pkgver=2.19.3
|
|
pkgrel=5
|
|
pkgdesc="Crypto and TLS for C++11"
|
|
url="https://botan.randombit.net/"
|
|
arch="all"
|
|
license="BSD-2-Clause"
|
|
depends_dev="boost-dev bzip2-dev sqlite-dev xz-dev zlib-dev"
|
|
makedepends="$depends_dev python3"
|
|
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
|
|
source="https://botan.randombit.net/releases/Botan-$pkgver.tar.xz"
|
|
builddir="$srcdir/Botan-$pkgver"
|
|
|
|
# secfixes:
|
|
# 2.18.1-r3:
|
|
# - CVE-2021-40529
|
|
# 2.17.3-r0:
|
|
# - CVE-2021-24115
|
|
# 2.9.0-r0:
|
|
# - CVE-2018-20187
|
|
# 2.7.0-r0:
|
|
# - CVE-2018-12435
|
|
# 2.6.0-r0:
|
|
# - CVE-2018-9860
|
|
# 2.5.0-r0:
|
|
# - CVE-2018-9127
|
|
|
|
case $CARCH in
|
|
ppc64le|aarch64|armhf|armv7) options="$options !check" ;; # 3 tests timeout
|
|
esac
|
|
|
|
build() {
|
|
# botan benefits from -O3. Upstream is using it when testing.
|
|
CXXFLAGS="$CXXFLAGS -O3" \
|
|
python3 ./configure.py \
|
|
--prefix=/usr \
|
|
--mandir=/usr/share/man \
|
|
--with-boost \
|
|
--with-bzip2 \
|
|
--with-lzma \
|
|
--with-openmp \
|
|
--with-sqlite3 \
|
|
--with-zlib \
|
|
--with-os-feature=getrandom \
|
|
--disable-static
|
|
|
|
make
|
|
}
|
|
|
|
check() {
|
|
LD_LIBRARY_PATH="$builddir" ./botan-test
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
# botan3 keeps the main name
|
|
mv "$pkgdir"/usr/bin/botan "$pkgdir"/usr/bin/botan2
|
|
rm -rf "$pkgdir"/usr/lib/python*
|
|
}
|
|
|
|
sha512sums="
|
|
80012397e2aa7cc88a9536340ac9b770d1195fddda53b9d4cfde82318dd05f9d4f925bbdff773aba99883a701f4d30581e9d5c97e915fa80c3ca2acfa5a92110 Botan-2.19.3.tar.xz
|
|
"
|