crystal-bin: libressl/openssl version conflict workaround

This commit is contained in:
lvmbdv 2017-12-10 22:17:04 +03:00 committed by Toyam Cox
parent a7b91cbadf
commit 49f7f29c1c

View file

@ -25,6 +25,11 @@ do_extract() {
tar xfz ${XBPS_SRCDISTDIR}/${pkgname}-${version}/crystal-${version}-${_binary_revision}-linux-${XBPS_TARGET_MACHINE}.tar.gz --strip-components=1 -C ${wrksrc}
}
post_extract() {
sed -i 's/OPENSSL_102 = .*/OPENSSL_102 = false # LibreSSL currently does not support APIs above 1.0.1/' ${wrksrc}/src/openssl/lib_{ssl,crypto}.cr
sed -i 's/OPENSSL_110 = .*/OPENSSL_110 = false # LibreSSL currently does not support APIs above 1.0.1/' ${wrksrc}/src/openssl/lib_{ssl,crypto}.cr
}
do_install() {
vmkdir /usr/bin
vmkdir /usr/lib/crystal