mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-07 18:41:55 +01:00
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
This commit is contained in:
parent
518435d80f
commit
c7c6918202
49
community/py-evtx/APKBUILD
Normal file
49
community/py-evtx/APKBUILD
Normal file
@ -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"
|
||||||
@ -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"
|
|
||||||
Loading…
x
Reference in New Issue
Block a user