aboutsummaryrefslogtreecommitdiffstats
path: root/testing/yara/APKBUILD
blob: eef947d86e3cec3edc2880d54415e33c124d8580 (plain)
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
# Maintainer: Daniel Isaksen <d@duniel.no>

pkgname=yara
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/yara/archive/v$pkgver.tar.gz"
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="26d800284a2de07195e4a480eb7125b1f5ad0265b284bfbeee10dbab162ea0f419c9e2ea5c4ed5fa25a46a2c9e3c6b077dfe1cafece79251e20d5d70f91b80a8  yara-3.11.0.tar.gz"