# Contributor: tcely # Maintainer: pkgname=botan _pkgname=Botan pkgver=2.8.0 pkgrel=0 pkgdesc="Crypto and TLS for C++11" url="https://botan.randombit.net/" arch="all" license="BSD-2-Clause" depends="" depends_dev="boost-dev bzip2-dev openssl-dev sqlite-dev xz-dev zlib-dev" makedepends="$depends_dev python2" subpackages="$pkgname-dev $pkgname-doc" source="https://botan.randombit.net/releases/$_pkgname-$pkgver.tgz" builddir="$srcdir/$_pkgname-$pkgver" install="" # secfixes: # 2.7.0-r0: # - CVE-2018-12435 # 2.6.0-r0: # - CVE-2018-9860 # 2.5.0-r0: # - CVE-2018-9127 build() { cd "$builddir" ./configure.py \ --prefix=/usr \ --mandir=/usr/share/man \ --with-boost \ --with-bzip2 \ --with-lzma \ --with-openmp \ --with-openssl \ --with-sqlite3 \ --with-zlib make } check() { cd "$builddir" ./botan-test } package() { cd "$builddir" make DESTDIR="$pkgdir" install rm -rf "$pkgdir"/usr/lib/python* } sha512sums="12f734eea3e60a956f75a5b58e9bd83fac7b0dbcd71fb9577b025d171702d87a9a11e2e73162320bdefb2d25f3900757d89dd7fe13089321c88d948efc2ba214 Botan-2.8.0.tgz"