aboutsummaryrefslogblamecommitdiffstats
path: root/community/py-evtx/APKBUILD
blob: d97d77687b0efb4dde24b68a625f2bdde21906f7 (plain) (tree)
















































                                                                                                                                                                   
# 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"