diff --git a/srcpkgs/libtls/template b/srcpkgs/libtls/template index 40412b1e785..10a7ec6e8ae 100644 --- a/srcpkgs/libtls/template +++ b/srcpkgs/libtls/template @@ -2,6 +2,8 @@ pkgname=libtls version=3.6.1 revision=1 +create_wrksrc=yes +build_wrksrc="libressl-${version}" build_style=gnu-configure configure_args="--enable-libtls-only --enable-nc $(vopt_enable asm)" hostmakedepends="automake libtool" @@ -15,6 +17,7 @@ distfiles="http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${version}.tar.g checksum=acfac61316e93b919c28d62d53037ca734de85c46b4d703f19fd8395cf006774 _lssl_asm_ver="1.2.0" replaces="libtls20>0" +patch_args="-Np1 --directory=${build_wrksrc}" build_options="asm" desc_option_asm="Use platform assembly for faster crypto" @@ -35,7 +38,7 @@ esac post_extract() { [ -z "$build_option_asm" ] && return 0 - mv ../libressl-portable-asm-${_lssl_asm_ver} . + mv libressl-portable-asm-${_lssl_asm_ver} ${build_wrksrc} } pre_configure() {