summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2b2b96dc5700fe6614de7dd5376433a851a1165e (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
33
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Mark Weiman <mark dot weriman at markzz dot com>

pkgname=python-evtx
pkgver=0.7.4
pkgrel=1
pkgdesc="Pure Python parser for Windows Event Log Files"
arch=('any')
license=('Apache')
url='https://github.com/williballenthin/python-evtx'
depends=('python-six' 'python-hexdump')
makedepends=('python-setuptools')
# checkdepends=('python-pytest-runner' 'python-pytest-cov' 'python-lxml')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('ecf3c1736ec9e080ddd1c64b6dad23c756e20d54bd30acc21245b9706258fdd9')

build() {
	cd "$pkgname-$pkgver"
	python setup.py build
}

## requires an older version of pytest
# check() {
# 	cd "$pkgname-$pkgver"
# 	python setup.py pytest
# }

package() {
	cd "$pkgname-$pkgver"
	PYTHONHASHSEED=0 python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
	install -Dm 644 LICENSE.TXT -t "$pkgdir/usr/share/licenses/$pkgname/"
	install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}