# Description: Crypto and TLS for Modern C++
# URL: https://botan.randombit.net/
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: bzip2 sqlite3 xz
# Optional: boost

name=botan
version=3.1.1
release=1
source=(https://botan.randombit.net/releases/Botan-$version.tar.xz)

build() {
  cd ${name^}-$version

  prt-get isinst boost && PKGMK_BOTAN+=' --with-boost'

  /usr/bin/python3 ./configure.py --prefix=/usr $PKGMK_BOTAN \
    --with-bzip \
    --with-zlib \
    --with-sqlite3 \
    --with-os-feature=getrandom
  make
  make DESTDIR=$PKG install

  rm -r $PKG/usr/share
}
