summaryrefslogtreecommitdiff
path: root/user/py3-olefile/APKBUILD
blob: a890d231f9ce7dbdc443b13bc6ad99ba297b557f (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
# Contributor: Max Rees <maxcrees@me.com>
# Maintainer: Max Rees <maxcrees@me.com>
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"