summaryrefslogtreecommitdiff
path: root/repo/botan/botan.xibuild
blob: 86286ece90c2ad1055450886a2b7d7c8f66e280c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh

NAME="botan"
DESC="Crypto and TLS for C++11"

MAKEDEPS="make boost bzip2 openssl sqlite3 xz zlib"
DEPS="musl libstdc++ libgcc"

PKG_VER=2.19.2
SOURCE="https://botan.randombit.net/releases/Botan-$PKG_VER.tar.xz"

build () {
    CXXFLAGS="$CXXFLAGS -O3"
    python3 ./configure.py \
        --prefix=/usr \
        --bindir=/usr/bin \
        --sysconfdir=/etc \
        --with-boost \
		--with-bzip2 \
		--with-lzma \
		--with-openmp \
		--with-openssl \
		--with-sqlite3 \
		--with-zlib \
		--with-os-feature=getrandom \
        --disable-static
    make
}

check() {
	LD_LIBRARY_PATH="$BUILD_ROOT" ./botan-test
}


package () {
    make DESTDIR=$PKG_DEST install
    rm -rf "$PKG_DEST"/usr/lib/python*
}