# Maintainer: Levente Polyak # Contributor: bitwave # Contributor: fnord0 pkgname=yara pkgver=4.3.1 pkgrel=1 pkgdesc='Tool aimed at helping malware researchers to identify and classify malware samples' url='https://github.com/VirusTotal/yara' arch=('x86_64') license=('BSD') depends=('openssl' 'file' libmagic.so) provides=('libyara.so') source=(https://github.com/VirusTotal/${pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz) sha512sums=('93a2243d54397e76175fa0106451965b7f3a1f1918307c2bae6193f3725b69f60f70c3901a12c1690368f5b37e973a65c63a299624a521d204b12b48d5efe496') b2sums=('071bd2201653b094f828a5ea1ca2dd08fb0e3e8ea0439784bd949fc9ebfeb3c1aa9408581c8808d2d648d988c3aaab676d61605b53446efa12d838898b7ffe16') 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}" } # vim: ts=2 sw=2 et: