aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-evtx/APKBUILD
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-09-07 22:02:25 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-09-07 22:19:52 -0300
commit56ed1051b8dbd880c28a62735a822a4af7a4d797 (patch)
treeaf3df6832f8360eaabb7f21d8ec601a0c1b6038e /community/py3-evtx/APKBUILD
parent05c5ca6b27f3d5cd99b87e0c52be091db3911d0e (diff)
downloadaports-56ed1051b8dbd880c28a62735a822a4af7a4d797.tar.bz2
aports-56ed1051b8dbd880c28a62735a822a4af7a4d797.tar.xz
community/py3-evtx: drop py2
Diffstat (limited to 'community/py3-evtx/APKBUILD')
-rw-r--r--community/py3-evtx/APKBUILD40
1 files changed, 10 insertions, 30 deletions
diff --git a/community/py3-evtx/APKBUILD b/community/py3-evtx/APKBUILD
index a405260820..db00038d37 100644
--- a/community/py3-evtx/APKBUILD
+++ b/community/py3-evtx/APKBUILD
@@ -1,47 +1,27 @@
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
-pkgname=py-evtx
+pkgname=py3-evtx
_pkgname=python-evtx
pkgver=0.6.1
-pkgrel=1
-pkgdesc="Pure Python parser for recent Windows Event Log files (.evtx)"
+pkgrel=2
+pkgdesc="Pure Python3 parser for recent Windows Event Log files (.evtx)"
url="http://www.williballenthin.com/evtx/index.html"
arch="noarch"
license="Apache-2.0"
-depends=""
-makedepends="python2-dev py-setuptools python3-dev"
-install=""
-subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"
+depends="python3"
+makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/williballenthin/$_pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
-builddir="$srcdir"/$_pkgname-$pkgver
+replaces="py-evtx" # Backwards compatibility
+provides="py-evtx=$pkgver-r$pkgrel" # Backwards compatibility
build() {
- cd "$builddir"
- python2 setup.py build || return 1
- python3 setup.py build || return 1
+ python3 setup.py build
}
package() {
- mkdir -p "$pkgdir"
+ python3 setup.py install --prefix=/usr --root="$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
-}
-
-sha512sums="e0b0a5a002b2aa82262b49b269ab84be8ee57f1de69daf5b3e9e5167915fa63b756da240856fc37cacbabf7910189d3b5270e0d18905d09a8fd1f44ec8b3d1e2 py-evtx-0.6.1.tar.gz"
+sha512sums="e0b0a5a002b2aa82262b49b269ab84be8ee57f1de69daf5b3e9e5167915fa63b756da240856fc37cacbabf7910189d3b5270e0d18905d09a8fd1f44ec8b3d1e2 py3-evtx-0.6.1.tar.gz"