# Compiling Time: 0.81 SBU
# Maintainer: crazy <crazy@frugalware.org>
# Contributor: Kooda <kooda@upyum.com>
# Contributor: Miklos Vajna <vmiklos@frugalware.org>

pkgname=botan
pkgver=3.8.1
pkgrel=1
pkgdesc="Crypto library written in C++"
url="http://botan.randombit.net/"
depends=('bzip2' 'xz' 'sqlite3' 'zlib>=1.2.12' 'libstdc++' 'libgcc' 'python3')
makedepends=('gcc>=12.2')
groups=('lib')
archs=("x86_64")
_F_github_author="randombit"
_F_github_tag="yes"
_F_github_grepv="alpha\|rc1"
Finclude github
sha1sums=('9fe4ec997f4bab575e8b15e5e2a1c42a9bb7ef2b')

subpkgs=("${pkgname}-static")
subdescs=("Static files for $pkgname")
subdepends=('')
subgroups=('devel-extra')
subarchs=('x86_64')

build()
{
	Fcd
	Fset_lto_toolchain
	Fsed "-O3" "$CFLAGS" src/build-data/cc/gcc.txt
	Fexec ./configure.py \
		--prefix=/usr \
		--cc=gcc \
		--os=linux \
		--with-sqlite3 \
		--with-zlib \
		--with-bzip2 \
		--with-lzma || Fdie
	Fexec make || Fdie
	Fexec make DESTDIR=$Fdestdir install || Fdie
	Fsplit ${pkgname}-static  usr/lib/*.a
}

# optimization OK
