# Contributor: tcely # Maintainer: Natanael Copa pkgname=botan pkgver=2.11.0 pkgrel=3 pkgdesc="Crypto and TLS for C++11" url="https://botan.randombit.net/" arch="all" license="BSD-2-Clause" depends_dev="boost-dev bzip2-dev openssl-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.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 build() { # botan benefits from -O3. Upstream is using it when testing. CXXFLAGS="$CXXFLAGS -O3" \ ./configure.py \ --prefix=/usr \ --mandir=/usr/share/man \ --with-boost \ --with-bzip2 \ --with-lzma \ --with-openmp \ --with-openssl \ --with-sqlite3 \ --with-zlib \ --with-os-feature=getrandom \ --disable-static make } check() { ./botan-test } package() { make DESTDIR="$pkgdir" install rm -rf "$pkgdir"/usr/lib/python* } sha512sums="a697a7f29788afc561cde35431e65e2f37e40fd45af89a6d060bf9988d28089905c6a1c005f9b23fb377547cd7a96a41f62c8d2f61a7f80d1ca1b9ccf857a2ce Botan-2.11.0.tar.xz"