44 lines
991 B
Bash
44 lines
991 B
Bash
# Template file for 'yara'
|
|
pkgname=yara
|
|
version=3.6.1
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--enable-magic --enable-cuckoo"
|
|
hostmakedepends="automake libtool"
|
|
makedepends="libressl-devel file-devel jansson-devel"
|
|
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
|
|
|
|
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() {
|
|
for f in docs/*.rst docs/modules/*.rst; do
|
|
vdoc $f
|
|
done
|
|
vlicense COPYING
|
|
}
|