blob: 39377f33af09eda4cc3c64a617e3af30fa42963c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
pkgname=python-yara-git
pkgver=4.5.4.419.74920b6
pkgrel=1
pkgdesc="Tool aimed at helping malware researchers to identify and classify malware samples"
url="https://github.com/VirusTotal/yara-python"
arch=(i686 x86_64)
license=(Apache-2.0)
depends=(python yara)
makedepends=(python-setuptools git)
provides=(python-yara)
conflicts=(python-yara)
source=(git+${url}.git)
sha512sums=('SKIP')
pkgver() {
cd yara-python
printf "%s.%s.%s" "$(git describe --tags --abbrev=0 | cut -dv -f2 | cut -d- -f1)" \
"$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd yara-python
python setup.py build --dynamic-linking
}
package() {
cd yara-python
python setup.py install --root="${pkgdir}" -O1 --skip-build
install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
ln -s /usr/share/doc/yara/docs "${pkgdir}/usr/share/doc/${pkgname}/docs"
}
|