From 7317028f28b91e7d8edd67ac18cb2c65911e5d1e Mon Sep 17 00:00:00 2001 From: Francesco Colista Date: Tue, 7 Jan 2020 11:29:21 +0000 Subject: testing/yara: upgrade to 3.11.0 --- testing/yara/APKBUILD | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) (limited to 'testing/yara') diff --git a/testing/yara/APKBUILD b/testing/yara/APKBUILD index 4c37b2df85..eef947d86e 100644 --- a/testing/yara/APKBUILD +++ b/testing/yara/APKBUILD @@ -1,30 +1,22 @@ # Maintainer: Daniel Isaksen pkgname=yara -pkgver=3.7.0 -pkgrel=3 +pkgver=3.11.0 +pkgrel=0 pkgdesc="The pattern matching swiss knife for malware researchers" url="https://virustotal.github.io/yara/" arch="all !armhf !armv7" # armhf: tests fail license="BSD-3-Clause" makedepends="automake file-dev openssl-dev autoconf libtool flex" -source="$pkgname-$pkgver.tar.gz::https://github.com/VirusTotal/$pkgname/archive/v$pkgver.tar.gz" +source="$pkgname-$pkgver.tar.gz::https://github.com/VirusTotal/yara/archive/v$pkgver.tar.gz" subpackages="$pkgname-doc" -builddir="$srcdir/$pkgname-$pkgver" -options="!check" # test-rules crashes on hardened kernel prepare() { default_prepare - # Delete re_lexer.c to force it to be build with new version - # of flex, othwewise tests fail in some arches because of a bug - # in older version of flex. - # See: https://github.com/VirusTotal/yara/issues/771 - rm "$srcdir"/yara-3.7.0/libyara/re_lexer.c + autoreconf -fiv } build() { - cd "$builddir" - autoreconf -fiv ./configure \ --prefix=/usr \ --with-crypto \ @@ -32,17 +24,15 @@ build() { make } +check() { + make check +} + package() { - cd "$builddir" make DESTDIR="$pkgdir" install install -Dm 644 COPYING "$pkgdir/usr/share/licenses/$pkgname"/COPYING install -Dm 644 README.md "$pkgdir/usr/share/doc/$pkgname"/README.md cp -r docs "$pkgdir/usr/share/doc/$pkgname" } -check() { - cd "$builddir" - make check -} - -sha512sums="cd0214d39c6d1c5bc8410a1ec67e42ec8a672be382fb11e0a0f98cb03af1ef5db92e74216a9b98a6bdedf9721d4470639e340edbd39ca0184233652839742a33 yara-3.7.0.tar.gz" +sha512sums="26d800284a2de07195e4a480eb7125b1f5ad0265b284bfbeee10dbab162ea0f419c9e2ea5c4ed5fa25a46a2c9e3c6b077dfe1cafece79251e20d5d70f91b80a8 yara-3.11.0.tar.gz" -- cgit v1.2.3