1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 11:45:18 +03:00
aports/testing/py3-oletools/APKBUILD
2021-07-14 21:42:54 +00:00

45 lines
1.3 KiB
Text

# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-oletools
pkgver=0.60
pkgrel=0
pkgdesc="tools to analyze security characteristics of MS Office and OLE files"
url="https://www.decalage.info/python/oletools"
arch="noarch"
license="BSD-2-Clause AND MIT"
depends="python3
py3-colorclass
py3-easygui
py3-msoffcrypto-tool
py3-olefile
py3-parsing
py3-pcodedmp
py3-prettytable
py3-xxxswf
"
# bundled dependency oledump has no setup.py
# tablestream and xglob have no upstream repo or page on declage.com
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/decalage2/oletools/archive/refs/tags/v$pkgver.tar.gz
unbundle.patch
"
builddir="$srcdir/oletools-$pkgver"
build() {
python3 setup.py build
}
check() {
# deselected test returns unknown file type
pytest --deselect tests/oleid/test_basic.py::TestOleIDBasic::test_all
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="
2e29bd29e013812a9c9fdfed237232d499632692861caadb1281fd71e6f8d59a4270a5c82aab119c77cb058aec8c08c54c96c177bb77464c63704869b29bd06f py3-oletools-0.60.tar.gz
a7f015fac09f36fffb971818519d7d0d87884eb80580c068f5e7460427fc713272a3a4ed78d321f65d8ad47e61966e4a9db52b50736bace3f80f44df17ec8de2 unbundle.patch
"