2017-05-10 12:42:02 +00:00
|
|
|
# Template file for 'yara'
|
|
|
|
pkgname=yara
|
2017-07-06 08:45:15 +00:00
|
|
|
version=3.6.3
|
2017-05-23 00:21:05 +00:00
|
|
|
revision=1
|
2017-05-10 12:42:02 +00:00
|
|
|
build_style=gnu-configure
|
2017-05-10 13:23:35 +00:00
|
|
|
configure_args="--enable-magic --enable-cuckoo"
|
2017-05-10 12:42:02 +00:00
|
|
|
hostmakedepends="automake libtool"
|
2017-05-10 13:23:35 +00:00
|
|
|
makedepends="libressl-devel file-devel jansson-devel"
|
2017-05-10 12:42:02 +00: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"
|
2017-07-06 08:45:15 +00:00
|
|
|
checksum=ad2c0e788b4d8b2f3e9078f448754313249a302b749b9a24e932bfc5e141a5e8
|
2017-05-10 12:42:02 +00: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 13:13:53 +00:00
|
|
|
for f in docs/*.rst docs/modules/*.rst; do
|
|
|
|
vdoc $f
|
|
|
|
done
|
2017-05-10 12:42:02 +00:00
|
|
|
vlicense COPYING
|
|
|
|
}
|