aboutsummaryrefslogtreecommitdiffstats
path: root/testing/yara/APKBUILD
blob: 65a5cffc6d800967f000225ba69426d26e075b82 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Maintainer: Daniel Isaksen <d@duniel.no>
pkgname=yara
pkgver=4.0.0
pkgrel=1
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/yara/archive/v$pkgver.tar.gz
remove-test-rules.patch"
subpackages="$pkgname-doc"

prepare() {
	default_prepare
	autoreconf -fiv
}

build() {
	./configure \
		--prefix=/usr \
		--with-crypto \
		--enable-magic
	make
}

check() {
	make check
}

package() {
	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"
}

sha512sums="b78dac06d6f8b4153f3939fd3a5f6d50544c078520c240baa4bae00c552bf98d374c60629b256a75fe8943ef44830d5313e43f88cfb07ab561d22148f56b6fb7  yara-4.0.0.tar.gz
dd3de272614fdfe2ee4658eacacdc54213af44879c1756f2432294221f5fba23e8de028da43f1d47e69c9209266f7d49a6619d7e1af9ef71bc14d07549ad3df1  remove-test-rules.patch"