Date: Friday, May 15, 2020 @ 19:18:18 Author: anthraxx Revision: 628088
archrelease: copy trunk to community-staging-x86_64 Added: yara/repos/community-staging-x86_64/ yara/repos/community-staging-x86_64/PKGBUILD (from rev 628087, yara/trunk/PKGBUILD) ----------+ PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) Copied: yara/repos/community-staging-x86_64/PKGBUILD (from rev 628087, yara/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-05-15 19:18:18 UTC (rev 628088) @@ -0,0 +1,40 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> +# Contributor: bitwave <aur [aT] oomlu [d0T] de> +# Contributor: fnord0 <fnord0 AT riseup DOT net> + +pkgname=yara +pkgver=4.0.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') +provides=('libyara.so') +source=(https://github.com/VirusTotal/${pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz) +sha512sums=('5d91b8df242299084916d9634e950359e7a9df26a7964ca2ca52cecf79a969d5aefd1c2dd89f5e762cf3a3c907cd616bd738b540f8600ad94522cbc3f1b031d3') +b2sums=('d56ba0c989f28c802b4474832f595360a246740a67aff8106a7ded8ce0c4636afac487d17b1e2470ee21741d95b71b78dbd7679e71bc1f84dbfc9d2f2c0d48ed') + +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: