# Maintainer: Antonio Rojas # Contributor: Alexander F. Rødseth # Contributor: Angel Velasquez # Contributor: Douglas Soares de Andrade # Contributor: d'Ronin # Contributor: Hexchain Tong # Contributor: Jack Lloyd # ALARM: Kevin Mihelich # - disable neon on !AArch64 pkgname=botan pkgver=2.18.0 pkgrel=1 pkgdesc='Crypto library written in C++' arch=(x86_64) url='https://botan.randombit.net/' license=(BSD) depends=(xz sqlite) makedepends=(python boost openssl) optdepends=('python: for using botan2.py' 'boost-libs: for the botan executable') source=("https://botan.randombit.net/releases/Botan-${pkgver}.tar.xz"{,.asc}) sha256sums=('cc64852e1e0c5bb30ecd052e4a12d5136125a8ce5c3be2efb6fb061c8677e327' 'SKIP') validpgpkeys=('621DAF6411E1851C4CF9A2E16211EBF1EFBADFBC') # Botan Distribution Key build() { cd "${pkgname^}-$pkgver" [[ $CARCH != "aarch64" ]] && CONFIG="--disable-neon" ./configure.py \ --prefix=/usr \ --with-bzip \ --with-lzma \ --with-zlib \ --with-boost \ --with-openssl \ --with-sqlite3 \ --with-os-feature=getrandom \ $CONFIG make } check() { cd "${pkgname^}-$pkgver" LD_LIBRARY_PATH="$PWD" ./botan-test } package() { DESTDIR="$pkgdir" make -C "${pkgname^}-$pkgver" install install -Dm644 "${pkgname^}-$pkgver/license.txt" \ "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }