blob: cc3f6dabcde05013efbefc7242117a2d503af65f (
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
|
# Maintainer: Laurent Bercot <ska-devel@skarnet.org>
# Contributor: Laurent Bercot <ska-devel@skarnet.org>
pkgname=bearssl
pkgver=0.6
pkgrel=2
pkgdesc="The BearSSL implementation of the SSL/TLS protocol"
url="https://bearssl.org/"
arch="all"
license="MIT"
subpackages="$pkgname-dev"
source="
https://bearssl.org/$pkgname-$pkgver.tar.gz
bearssl-brssl-dynamic.patch
libbearssl.pc
"
build() {
make \
CC="${CC:-gcc}" \
CFLAGS="-W -Wall -fPIC $CFLAGS" \
LD="${CC:-gcc}" \
LDFLAGS="$CFLAGS $LDFLAGS" \
LDDLL="${CC:-gcc}" \
LDDLLFLAGS="$CFLAGS $LDFLAGS -shared -Wl,-soname,libbearssl.so.${pkgver%%.*}" \
D=".so.$pkgver"
}
package() {
mkdir -p -m 0755 -- "$pkgdir"/bin "$pkgdir"/lib "$pkgdir"/usr/include "$pkgdir"/usr/lib
cp -f "$builddir/build/brssl" "$pkgdir/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"
install -D -m644 "$srcdir"/libbearssl.pc "$pkgdir"/usr/lib/pkgconfig/libbearssl.pc
}
check() {
cd "$builddir/build"
./testx509
./testcrypto all
}
sha512sums="
f9ed25683cfc6c4abe7f1203a2b82ed101ee4c9e0f9ab60755b6a09c8d1e8e4f64d413624e7bb9c4b0033f909a2e4568a1d916cc6ce4736222900691e1f8359a bearssl-0.6.tar.gz
f5fe047862eb355a662ccb1b95c2ca4a870ac0f8d3f4cada5396d2f6a6635647db53fbeb038f9a7651b84d6cda32b6415ce0f69a8da92636d3b3b76578114d5c bearssl-brssl-dynamic.patch
d9cb508709909522a19142a2d8fc988fcb1f33796ace4e21908070925ec402c73fd0778a170a50d3d89bab1263e40a40401a9e593cb4f2a8e314fc52f9965696 libbearssl.pc
"
|