diff --git a/srcpkgs/yara/patches/libressl.patch b/srcpkgs/yara/patches/libressl.patch
index e0bef7e3f28..4094d6aca8c 100644
--- a/srcpkgs/yara/patches/libressl.patch
+++ b/srcpkgs/yara/patches/libressl.patch
@@ -45,14 +45,3 @@
  
    for (i = 0; i < CRYPTO_num_locks(); i ++)
      yr_mutex_destroy(&openssl_locks[i]);
---- libyara/modules/pe.c.orig   2016-09-06 20:09:47.000000000 +0000
-+++ libyara/modules/pe.c        2017-05-10 12:38:23.755095815 +0000
-@@ -42,7 +42,7 @@
- #include <openssl/bio.h>
- #include <openssl/pkcs7.h>
- #include <openssl/x509.h>
--#if OPENSSL_VERSION_NUMBER < 0x10100000L
-+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
- #define X509_get_signature_nid(o) OBJ_obj2nid((o)->sig_alg->algorithm)
- #endif
- #endif
diff --git a/srcpkgs/yara/template b/srcpkgs/yara/template
index 576b45341ca..c54b9f2eab2 100644
--- a/srcpkgs/yara/template
+++ b/srcpkgs/yara/template
@@ -1,6 +1,6 @@
 # Template file for 'yara'
 pkgname=yara
-version=3.6.1
+version=3.6.2
 revision=1
 build_style=gnu-configure
 configure_args="--enable-magic --enable-cuckoo"
@@ -11,7 +11,7 @@ maintainer="Michael Gehring <mg@ebfe.org>"
 license="3-clause-BSD"
 homepage="http://virustotal.github.io/yara/"
 distfiles="https://github.com/VirusTotal/yara/archive/v${version}.tar.gz"
-checksum=9ee0e0cc1c2b36c9e2095dab7d4db928b43f3301254ab0836a342a286282949e
+checksum=413b530b69dd3fb7bcef439bf44be262f051e55f7aa129f1efada193b15903a6
 
 pre_configure() {
 	autoreconf -fi