# Contributor: Orion # Maintainer: Orion # # pkgname=libressl pkgver=2.2.0 pkgrel=0 pkgdesc="FREE version of the SSL/TLS protocol forked from OpenSSL - Portable edition" url="http://www.libressl.org/" arch="all" license="openssl" depends="" depends_dev="" makedepends="$depends_dev linux-headers" install="" subpackages="$pkgname-dev $pkgname-doc" source="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/${pkgname}-${pkgver}.tar.gz musl-fixes.patch " _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 \ --infodir=/usr/share/info \ --localstatedir=/var \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/lib/*.la } md5sums="277e4bd258fd4fb2aadaed760320c566 libressl-2.2.0.tar.gz 7d3e35bfd4241c680f63007761a6fd77 musl-fixes.patch" sha256sums="9690d8f38a5d48425395452eeb305b05bb0f560cd96e0ee30f370d4f16563040 libressl-2.2.0.tar.gz 1e331cddc51e5dc5d0233032b5fe51c5a3a364d2dbd4b746d928358590d86277 musl-fixes.patch" sha512sums="aee06cf98dfeda9ff68c0db5c36c4f00ae0d436fadccaf811ff6c5ba26ef9e0ff73afb9034b1e3bf2715938a420ed297beee5102442b3bf5d344647d33c04e02 libressl-2.2.0.tar.gz ac83a7c3e3f937500d6c296bb40c4d48938278ddb7f4a751df398bfcc981e613bce10eaae93f0c8bfceb99dd9c1ae1e06c2ff03dff75662300f80f792d0c5826 musl-fixes.patch"