# Contributor: Orion # Maintainer: Orion # # pkgname=libressl pkgver=2.2.1 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="6605ef36e39110bd3da21ec9cf7d2da5 libressl-2.2.1.tar.gz" sha256sums="4f331750abfc3b605b02eeca1e8994fa0d2629985bc3f62924378197fbfe572d libressl-2.2.1.tar.gz" sha512sums="5c0ae6780717cc907b4a0aaffc018fa2608d5ed6f1ebae1d0c2bde7ed3f8c38511e93a82967c490adc8582512c06d6f26fb0fce7097298bbf587a83d1d591721 libressl-2.2.1.tar.gz"