void-packages/srcpkgs/bearssl/template
2017-04-04 13:29:56 +02:00

31 lines
982 B
Bash

# Template file for 'bearssl'
pkgname=bearssl
version=0.4
revision=1
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/"
_changelog="https://www.bearssl.org/changelog.html"
distfiles="https://www.bearssl.org/${pkgname}-${version}.tar.gz"
checksum=674d69ca6811a4a091de96d5866e22f06ffbf8d3765f0e884d9daeb80aa904d4
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
}
}