# Maintainer: Jesus E. pkgname=yara pkgver=4.2.1 pkgrel=1 pkgdesc="Tool aimed at helping malware researchers to identify and classify malware samples" url='https://github.com/VirusTotal/yara' arch=('i686' 'x86_64') license=('Modified-BSD') depends=('libressl' 'file') source=("https://github.com/VirusTotal/${pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz") sha512sums=('036a35d713647b23998135da0d27c13a8876aa44e18e3c9dc99fa425273d7c4a953cbdc78f413f29e8bf818d84b340d0719e241d2a83b7165a16d97e952c45b0') prepare() { cd ${pkgname}-${pkgver} autoreconf -fiv } build() { cd ${pkgname}-${pkgver} ./configure \ --prefix=/usr \ --with-crypto \ --enable-magic make } package() { cd ${pkgname}-${pkgver} make DESTDIR="${pkgdir}" install install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}" install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}" cp -r docs "${pkgdir}/usr/share/doc/${pkgname}" }