void-packages/srcpkgs/yara/template

44 lines
991 B
Bash
Raw Normal View History

2017-05-10 14:42:02 +02:00
# Template file for 'yara'
pkgname=yara
version=3.6.1
2017-05-23 02:21:05 +02:00
revision=1
2017-05-10 14:42:02 +02:00
build_style=gnu-configure
2017-05-10 15:23:35 +02:00
configure_args="--enable-magic --enable-cuckoo"
2017-05-10 14:42:02 +02:00
hostmakedepends="automake libtool"
2017-05-10 15:23:35 +02:00
makedepends="libressl-devel file-devel jansson-devel"
2017-05-10 14:42:02 +02:00
short_desc="Pattern matching swiss knife for malware researchers"
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
2017-05-10 14:42:02 +02:00
pre_configure() {
autoreconf -fi
}
libyara_package() {
short_desc+=" - library"
pkg_install() {
vmove usr/lib/*.so.*
}
}
yara-devel_package() {
depends="libyara-${version}-${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
}
}
post_install() {
2017-05-10 15:13:53 +02:00
for f in docs/*.rst docs/modules/*.rst; do
vdoc $f
done
2017-05-10 14:42:02 +02:00
vlicense COPYING
}