# Contributor: Orion # Maintainer: Orion # # pkgname=libressl pkgver=2.2.2 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 " _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="dd3a7cac858b7b2f6f7b8686d6562f60 libressl-2.2.2.tar.gz" sha256sums="e094b09f33d468545edbb2b16dc178f958ec2f66de1a2fc7cc2a20bd2489a114 libressl-2.2.2.tar.gz" sha512sums="eeff48450b92f46db9bbd851fbf97ffc9fdea16f69d6319de94755541b441bee1adea5d3f08d695e0cab9ce63f8ff0f2f6a5ba186dc071ec062ade53da3f811f libressl-2.2.2.tar.gz"