lib/botan/ndmake.sh
$ cat ndmake.sh
#!/bin/sh -ue
NAME=botan
VERSION=git
RELEASE=1
SOURCE="https://github.com/randombit/botan"

build() {
	msg 'configuring botan...'
	BOTAN_MODULES='bigint,ffi,hex,pgp_s2k,aes,camellia,des,cbc,cfb,auto_rng,hmac,hmac_drbg,crc24,hash,md5,sha1,sha2_32,sha2_64,sha3,dl_group,ec_group,pubkey,x25519,dsa,ecdh,ecdsa,ed25519,elgamal,rsa,eme_pkcs1,emsa_pkcs1,emsa_raw,kdf,rfc3394,sp800_56a,raw_hash,pcurves_generic,pcurves_secp192r1,pcurves_secp256k1,pcurves_secp256r1,pcurves_secp384r1,pcurves_secp521r1'
	./configure.py \
		--disable-shared-library \
		--extra-cxxflags=-fPIC \
		--build-tool=ninja \
		--minimized-build \
		--enable-modules="$BOTAN_MODULES" \
		--cc=clang \
		--prefix=$PKG$PREFIX \
		|| die 'configure failed'
	
	msg 'building botan...'
	samu || die 'samu failed'
	msg 'installing botan...'
	samu install || die 'install failed'
}

. ${0%/*}/../../libsh/libdmake.sh