void-packages/srcpkgs/python3-msoffcrypto-tool/template

30 lines
895 B
Bash

# Template file for 'python3-msoffcrypto-tool'
pkgname=python3-msoffcrypto-tool
version=5.0.0
revision=2
wrksrc="msoffcrypto-tool-${version}"
build_style=python3-pep517
make_install_target="msoffcrypto_tool-${version}-*-*-*.whl"
hostmakedepends="python3-poetry-core"
depends="python3-setuptools python3-olefile python3-cryptography"
checkdepends="python3-pytest $depends"
short_desc="Python3 library for decrypting MS Office files"
maintainer="Andrew Benson <abenson+void@gmail.com>"
license="MIT"
homepage="https://github.com/nolze/msoffcrypto-tool"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=b6989cafd769669b8d7ba596d7cc9147317aa0badf9188648710776a5752ab62
make_check=extended
post_install() {
vlicense LICENSE.txt
}
msoffcrypto-tool_package() {
short_desc="${short_desc/library/tool}"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/bin
}
}