aboutsummaryrefslogtreecommitdiffstats
path: root/testing/botan/APKBUILD
blob: 500c31f7f920d73c5be96779757e2f14db1a6b3a (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Contributor: tcely <tcely@users.noreply.github.com>
# Maintainer:
pkgname=botan
_pkgname=Botan
pkgver=2.7.0
pkgrel=2
pkgdesc="Crypto and TLS for C++11"
url="https://botan.randombit.net/"
arch="all"
license="BSD-2-Clause"
depends=""
depends_dev="boost-dev bzip2-dev libressl-dev sqlite-dev xz-dev zlib-dev"
makedepends="$depends_dev python2"
subpackages="$pkgname-dev $pkgname-doc"
source="https://botan.randombit.net/releases/$_pkgname-$pkgver.tgz
        point-at-infinity-soft-error.patch"
builddir="$srcdir/$_pkgname-$pkgver"
install=""

# secfixes:
#   2.7.0-r0:
#   - CVE-2018-12435
#   2.6.0-r0:
#   - CVE-2018-9860
#   2.5.0-r0:
#   - CVE-2018-9127

build() {
	cd "$builddir"

	./configure.py \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--with-boost \
		--with-bzip2 \
		--with-lzma \
		--with-openmp \
		--with-openssl \
		--with-sqlite3 \
		--with-zlib

	make
}

check() {
	cd "$builddir"

	LD_LIBRARY_PATH=. PYTHONPATH="$builddir/src/python" \
		python2 src/scripts/test_python.py
	./botan-test
}

package() {
	cd "$builddir"

	make DESTDIR="$pkgdir" install
	rm -rf "$pkgdir"/usr/lib/python*
}

sha512sums="992138d83e18aedf80337d825f80c34dd3d2177eb30967573c57cf9fb7e7f9a9965ae3d75f23635f4c93b4efb7bb5adbb3423702663c78a5eb905dd567561858  Botan-2.7.0.tgz
264f1f3718ce6561f134b330117c2d8d67c4dfb3e2bc41bd01331d53ce81f0f8ccade4a9dc7a8652e4d82f0c123da3ed2a575f3b1ab3b8c8ebce72abbfbfdd35  point-at-infinity-soft-error.patch"