40 lines
858 B
Bash
40 lines
858 B
Bash
|
# Template file for 'yara'
|
||
|
pkgname=yara
|
||
|
version=3.5.0
|
||
|
revision=1
|
||
|
build_style=gnu-configure
|
||
|
hostmakedepends="automake libtool"
|
||
|
makedepends="libressl-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=4bc72ee755db85747f7e856afb0e817b788a280ab5e73dee42f159171a9b5299
|
||
|
|
||
|
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() {
|
||
|
vlicense COPYING
|
||
|
}
|