2017-04-02 16:52:01 +02:00
|
|
|
# Template file for 'bearssl'
|
|
|
|
pkgname=bearssl
|
2017-07-31 10:28:23 +02:00
|
|
|
version=0.5
|
|
|
|
revision=1
|
2017-04-02 16:52:01 +02:00
|
|
|
build_style=gnu-makefile
|
|
|
|
short_desc="Implementation of the SSL/TLS protocol in C"
|
|
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
|
|
license="MIT"
|
|
|
|
homepage="https://www.bearssl.org/"
|
2017-04-04 13:25:00 +02:00
|
|
|
_changelog="https://www.bearssl.org/changelog.html"
|
2017-04-02 16:52:01 +02:00
|
|
|
distfiles="https://www.bearssl.org/${pkgname}-${version}.tar.gz"
|
2017-07-31 10:28:23 +02:00
|
|
|
checksum=400f7027f309f5c0e3784ad1f5a612cfadfa108a33d867f50c75974cabd7830c
|
2017-04-02 16:52:01 +02:00
|
|
|
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
|
2017-07-11 17:22:05 +02:00
|
|
|
vlicense LICENSE.txt LICENSE
|
2017-04-02 16:52:01 +02:00
|
|
|
}
|
|
|
|
bearssl-devel_package() {
|
|
|
|
short_desc+=" - development files"
|
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/*.a
|
|
|
|
vmove usr/lib/*.so
|
|
|
|
}
|
|
|
|
}
|