aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-msoffcrypto-tool/APKBUILD
blob: 752cf61a0078c7aede26f5541cb3c5be44abd96e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-msoffcrypto-tool
pkgver=5.0.0
pkgrel=0
pkgdesc="tool and library for decrypting MS Office files with passwords or other keys"
url="https://github.com/nolze/msoffcrypto-tool"
arch="noarch"
license="MIT"
depends="python3 py3-cryptography py3-olefile"
makedepends="pyproject2setuppy"
checkdepends="bash py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/nolze/msoffcrypto-tool/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/msoffcrypto-tool-$pkgver"

build() {
	python3 -m pyproject2setuppy.main build
}

check() {
	python3 -m pyproject2setuppy.main install --root="$PWD/test_install"
	local _p="$PWD/test_install/usr"
	PATH="$_p/bin:$PATH" PYTHONPATH="$(find "$_p" -name "site*")" pytest -v
}

package() {
	python3 -m pyproject2setuppy.main install --prefix=/usr --root="$pkgdir"
}

sha512sums="
e2c03384d6447146ef0790da9d40c070e5fe9af3d2273ed1eb6410025146db7917df0f5704a8f6734b4f372da59e3f84ad3b1262715ca9f3b5b87c8dc4ad9847  py3-msoffcrypto-tool-5.0.0.tar.gz
"