aboutsummaryrefslogtreecommitdiffstats
path: root/testing/yara
diff options
context:
space:
mode:
authorDaniel Isaksen <d@duniel.no>2017-10-24 14:04:57 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-10-25 07:28:37 +0000
commit630709d1612a1547aaac6fd725f5e18355922df9 (patch)
tree361c383b3d761c50ddcbd43021a4fb8ba14447c1 /testing/yara
parentce5056043ca3c455afe5d7da9fa8bb888758b9f1 (diff)
downloadaports-630709d1612a1547aaac6fd725f5e18355922df9.tar.bz2
aports-630709d1612a1547aaac6fd725f5e18355922df9.tar.xz
testing/yara: new aport
Diffstat (limited to 'testing/yara')
-rw-r--r--testing/yara/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/yara/APKBUILD b/testing/yara/APKBUILD
new file mode 100644
index 0000000000..76103224e7
--- /dev/null
+++ b/testing/yara/APKBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Daniel Isaksen <d@duniel.no>
+
+pkgname=yara
+pkgver=3.6.3
+pkgrel=0
+pkgdesc="The pattern matching swiss knife for malware researchers"
+url="https://virustotal.github.io/yara/"
+arch="all"
+license="BSD-3-Clause"
+makedepends="automake file-dev libressl-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/VirusTotal/$pkgname/archive/v$pkgver.tar.gz"
+subpackages="$pkgname-doc"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ autoreconf -fiv
+ ./configure \
+ --prefix=/usr \
+ --with-crypto \
+ --enable-magic
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ install -Dm 644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname"
+ install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
+ cp -r docs "$pkgdir/usr/share/doc/$pkgname"
+}
+
+check() {
+ cd "$builddir"
+ make check || return 1
+}
+
+sha512sums="f928fe93e93385b5711c1076b042473299e1eb1c7c345433b01b7638677d9b8fb95a8ac2a7ef52012dc178ec0ef5772d6b6d0b65b5717d2074290bb44031b3f8 yara-3.6.3.tar.gz"