# Contributor: Sören Tempel # Contributor: Orion # Maintainer: Orion pkgname=libressl pkgver=2.2.5 pkgrel=0 pkgdesc="version of the TLS/crypto stack forked from OpenSSL" url="http://www.libressl.org/" arch="all" license="custom" depends="" depends_dev="" makedepends="linux-headers" install="" replaces="openssl" subpackages="$pkgname-libs $pkgname-dev $pkgname-doc" source="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${pkgname}-${pkgver}.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING } dev() { default_dev replaces="openssl-dev" } md5sums="d9b590dd8b36cb0bce783436b17dfe7c libressl-2.2.5.tar.gz" sha256sums="e3caded0469d8dc64f4ca2fe8e499ada4dd014e84d1c5a71818d39e54e6c914b libressl-2.2.5.tar.gz" sha512sums="501d04cb966260854082d374e60aabde21bcd65a331ff7c76044f2053b22ddab4914710b223b400a3a181873c6af5e2e7da5f04bdd9028fddbf420e259a2863a libressl-2.2.5.tar.gz"