aboutsummaryrefslogtreecommitdiffstats
path: root/testing/botan/APKBUILD
blob: db0647473617016058f1b6cd2b15be42e843ac61 (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
# Contributor: tcely <tcely@users.noreply.github.com>
# Maintainer:
pkgname=botan
pkgver=2.6.0
pkgrel=0
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/Botan-$pkgver.tgz
        add-armv8l-alias.patch"
builddir="$srcdir/Botan-$pkgver"
install=""

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="2082b4aaac0802f117a5f75c67a69e6d364b436a0ebe543032e370c3f085752bbe1ca48051462066e13bd42e47573ebc532d1d45074fe406df032f33346ee645  Botan-2.6.0.tgz
d43abb73a852e8370940dc7ef51e564c57d21365a2d5c04581ff9b5926a11e0a1c0e2f2e2821932f63649335f8606a789a3467e6ecfad4da76a2598ef5bce6ff  add-armv8l-alias.patch"