diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-09-06 08:30:20 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-09-06 08:30:31 +0000 |
commit | c7c6918202e3669fed645bc359f1bd4ae39f7c8f (patch) | |
tree | dbbb8aaad7cdc611d72e9afb0bdf2b9f609e8b65 /community/py-evtx | |
parent | 518435d80f955130770e51fb7b8e800da8ac9439 (diff) | |
download | aports-c7c6918202e3669fed645bc359f1bd4ae39f7c8f.tar.bz2 aports-c7c6918202e3669fed645bc359f1bd4ae39f7c8f.tar.xz |
community/py-evtx: upgrade to 0.4.0, moved from testing,
* version 0.4.0. added support for python3, then the package has been renamed from py2-evtx
* Added py2 and py3 subpackages
Diffstat (limited to 'community/py-evtx')
-rw-r--r-- | community/py-evtx/APKBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/community/py-evtx/APKBUILD b/community/py-evtx/APKBUILD new file mode 100644 index 0000000000..d97d77687b --- /dev/null +++ b/community/py-evtx/APKBUILD @@ -0,0 +1,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" |