diff --git a/common/shlibs b/common/shlibs index 30dd103d616..f6f9b26cf76 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2802,3 +2802,4 @@ libnss_libvirt.so.2 libvirt-3.1.0_1 libassimp.so.3 libassimp-3.3.1_1 libdouble-conversion.so.1 double-conversion-2.0.1_1 libspectrum.so.8 libspectrum-1.2.2_1 +libbearssl.so.0 bearssl-0.3_1 diff --git a/srcpkgs/bearssl-devel b/srcpkgs/bearssl-devel new file mode 120000 index 00000000000..0fcc137f929 --- /dev/null +++ b/srcpkgs/bearssl-devel @@ -0,0 +1 @@ +bearssl \ No newline at end of file diff --git a/srcpkgs/bearssl/template b/srcpkgs/bearssl/template new file mode 100644 index 00000000000..5af1098da03 --- /dev/null +++ b/srcpkgs/bearssl/template @@ -0,0 +1,30 @@ +# Template file for 'bearssl' +pkgname=bearssl +version=0.3 +revision=1 +build_style=gnu-makefile +short_desc="Implementation of the SSL/TLS protocol in C" +maintainer="Leah Neukirchen " +license="MIT" +homepage="https://www.bearssl.org/" +distfiles="https://www.bearssl.org/${pkgname}-${version}.tar.gz" +checksum=2797ccb08f41e1aeabb625c8682f4b2e61f1827695d4ea10a57c5b62175a3b22 +CFLAGS="-fPIC" +make_build_args="D=.so.${version} LDDLL=\$(CC) LD=\$(CC) LDDLLFLAGS=-shared LDDLLFLAGS+=-Wl,-soname,libbearssl.so.0" + +do_install() { + vbin build/brssl + vinstall build/libbearssl.a 0644 usr/lib + vinstall build/libbearssl.so.${version} 0644 usr/lib + ln -s libbearssl.so.${version} ${DESTDIR}/usr/lib/libbearssl.so + vcopy inc usr/include +} +bearssl-devel_package() { + short_desc+=" - development files" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove usr/lib/*.a + vmove usr/lib/*.so + } +}