# Contributor: Max Rees # Maintainer: Max Rees pkgname=py3-olefile _pkgname=olefile pkgver=0.46 pkgrel=0 pkgdesc="A Python module to read/write MS OLE2 files" url="https://pypi.org/project/olefile" arch="noarch" # Certified net clean license="BSD-2-Clause AND Custom" depends="python3" makedepends="python3-dev unzip" subpackages="" source="$pkgname-$pkgver.zip::https://files.pythonhosted.org/packages/source/o/$_pkgname/$_pkgname-$pkgver.zip" builddir="$srcdir/$_pkgname-$pkgver" build() { python3 setup.py build } check() { PYTHONPATH="build/lib" python3 tests/test_olefile.py } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt" } sha512sums="2a19c443c1e4519680027ff557b5f737e6d0e707c1932a759ea85105717f4f6393149e0eb04589fe2b2b7e0c474042cfe34801faad38517799483b711001b4ac py3-olefile-0.46.zip"