blob: aa6025380ca17126ed14e1e758b89af46205964b (
plain) (
blame)
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
|
# Contributor: Laurent Bercot <ska-adelie@skarnet.org>
# Maintainer: Laurent Bercot <ska-adelie@skarnet.org>
pkgname=bearssl
pkgver=0.6_git20241009
_pkgcommit=3c040368f6791553610e362401db1efff4b4c5b8
pkgrel=0
pkgdesc="The BearSSL implementation of the SSL/TLS protocol"
url="https://bearssl.org/"
arch="all"
license="MIT"
depends=""
makedepends=""
subpackages="$pkgname-dev"
source="bearssl-$pkgver.tar.gz::https://bearssl.org/gitweb/?p=BearSSL;a=snapshot;h=$_pkgcommit;sf=tgz
bearssl-brssl-dynamic.patch
"
builddir="${srcdir}"/BearSSL-$(printf "%s" "${_pkgcommit}" | cut -c -7)
build() {
make \
CC=gcc \
LD=gcc \
LDDLL=gcc \
LDDLLFLAGS="-shared -Wl,-soname,libbearssl.so.${pkgver%%.*}" \
D=".so.$pkgver"
}
check() {
build/testx509
build/testcrypto all
}
package() {
mkdir -p -m 0755 -- "$pkgdir"/usr/bin "$pkgdir"/lib "$pkgdir"/usr/include "$pkgdir"/usr/lib
cp -f "$builddir/build/brssl" "$pkgdir/usr/bin/"
cp -f "$builddir"/inc/* "$pkgdir/usr/include/"
cp -f "$builddir/build/libbearssl.a" "$pkgdir/usr/lib/"
cp -f "$builddir/build/libbearssl.so.$pkgver" "$pkgdir/lib/"
ln -sf "libbearssl.so.$pkgver" "$pkgdir/lib/libbearssl.so.${pkgver%%.*}"
ln -sf "libbearssl.so.${pkgver%%.*}" "$pkgdir/lib/libbearssl.so"
}
sha512sums="1d6957515833c81ca3fa070bef1ddc82fab3ff03ca3e8a81aae3f8c09b01d1ed488eb8f54988f25c09cbfbc7a90a4cd1de13ba179f205580c9c73164a0ced2a8 bearssl-0.6_git20241009.tar.gz
f5fe047862eb355a662ccb1b95c2ca4a870ac0f8d3f4cada5396d2f6a6635647db53fbeb038f9a7651b84d6cda32b6415ce0f69a8da92636d3b3b76578114d5c bearssl-brssl-dynamic.patch"
|