# Template file for 'libressl'
CFLAGS="-Wno-unused-value"

pkgname=libressl
version=2.0.0
revision=2
build_style=gnu-configure
conflicts="openssl>=0 libssl>=0"
short_desc="FREE version of the SSL/TLS protocol forked from OpenSSL"
maintainer="Juan RP <xtraeme@gmail.com>"
license="OpenSSL-License, SSLeay-License"
homepage="http://www.libressl.org/"
distfiles="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${pkgname}-${version}.tar.gz"
checksum=139ac81c9478accd38a9eb667623d75997a2197cec36f184cd8d23e98a7e475b

post_install() {
	vlicense COPYING
}

libressl-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}>=${version}_${revision}"
	conflicts="openssl-devel>=0"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/*.a
		vmove usr/lib/*.so
		vmove usr/share/man/man3
	}
}
