44 lines
1.0 KiB
Bash
44 lines
1.0 KiB
Bash
# Template file for 'yara'
|
|
pkgname=yara
|
|
version=4.0.1
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--enable-magic --enable-cuckoo"
|
|
hostmakedepends="automake libtool pkg-config"
|
|
makedepends="libressl-devel file-devel jansson-devel protobuf-c-devel"
|
|
short_desc="Pattern matching swiss knife for malware researchers"
|
|
maintainer="Andrew Benson <abenson+void@gmail.com>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://virustotal.github.io/yara/"
|
|
distfiles="https://github.com/VirusTotal/yara/archive/v${version}.tar.gz"
|
|
checksum=c63e2c4d73fc37e860db5d7e13d945684a0a6d1d17be7161fe1dd8f99268b03c
|
|
|
|
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
|
|
}
|