aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-evtx/APKBUILD
blob: 21a25f76817291c0e6c75f075090c60a9faf7cc8 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py-evtx
_pkgname=python-evtx
pkgver=0.4.0
pkgrel=0
pkgdesc="Pure Python parser for recent Windows Event Log files (.evtx)"
url="http://www.williballenthin.com/evtx/index.html"
arch="noarch"
license="APACHE2"
depends=""
makedepends="python2-dev py-setuptools python3-dev"
install=""
subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"
source="$pkgname-$pkgver.tar.gz::https://github.com/williballenthin/$_pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

builddir="$srcdir"/$_pkgname-$pkgver

build() {
	cd "$builddir"
	python2 setup.py build || return 1
	python3 setup.py build || return 1
}

package() {
	mkdir -p "$pkgdir"
}

_py() {
	local python=$1
	pkgdesc="$pkgdesc - $python"
	install_if="$pkgname=$pkgver-r$pkgrel $python"
	cd "$builddir"
	$python setup.py install --prefix=/usr --root="$subpkgdir"
}

_py2() {
	_py python2
	replaces="$pkgname"
}

_py3() {
	_py python3
}

md5sums="f94ac53dc32eb3206fdc746b4b09fe25  py-evtx-0.4.0.tar.gz"
sha256sums="01914a45a17f88ae0498c0f59f4157eeb015424237f5bb5ed2267cffddd50a04  py-evtx-0.4.0.tar.gz"
sha512sums="80bf28d6923fa000b00e41f6333784d5637c496985d47fc5de97f2a68c8289e083539acd3b7608b82a457888dbe9049a7f8476eb40fa46c44890cb3435616a15  py-evtx-0.4.0.tar.gz"