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 | |
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
-rw-r--r-- | community/py-evtx/APKBUILD | 49 | ||||
-rw-r--r-- | testing/py2-evtx/APKBUILD | 30 |
2 files changed, 49 insertions, 30 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" diff --git a/testing/py2-evtx/APKBUILD b/testing/py2-evtx/APKBUILD deleted file mode 100644 index f656be3479..0000000000 --- a/testing/py2-evtx/APKBUILD +++ /dev/null @@ -1,30 +0,0 @@ -# Contributor: Francesco Colista <fcolista@alpinelinux.org> -# Maintainer: Francesco Colista <fcolista@alpinelinux.org> -pkgname=py2-evtx -_pkgname=python-evtx -pkgver=0.3.1 -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="python2" -makedepends="python2-dev py-setuptools" -install="" -subpackages="" -source="$pkgname-$pkgver.tar.gz::https://github.com/williballenthin/$_pkgname/archive/v$pkgver.tar.gz" -builddir="$srcdir/$_pkgname-$pkgver" - -build() { - cd "$builddir" - python2 setup.py build || return 1 -} - -package() { - cd "$builddir" - python2 setup.py install --root=$pkgdir/ --optimize=1 || return 1 -} - -md5sums="bf0e8970694e986ecc988b6f4912a959 py2-evtx-0.3.1.tar.gz" -sha256sums="5cb8129455952a4f7925cf6fdb82a5516078d5e7b8fee1e82e3c688794addd25 py2-evtx-0.3.1.tar.gz" -sha512sums="9be45b65118ee3363445b240d3c33f5ec32ca957d07a68ecc9f5b16e86680d856a34ecb0abef3258fb6cd08befe82841a3437d74428b4660eba07d347373ef7b py2-evtx-0.3.1.tar.gz" |