From cb760b042d144c7daa8178122f7a8f11544f4759 Mon Sep 17 00:00:00 2001 From: Max Rees Date: Mon, 8 Jan 2018 04:30:54 +0000 Subject: user/py3-olefile: new package --- user/py3-olefile/APKBUILD | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 user/py3-olefile/APKBUILD (limited to 'user/py3-olefile/APKBUILD') diff --git a/user/py3-olefile/APKBUILD b/user/py3-olefile/APKBUILD new file mode 100644 index 000000000..4709626ae --- /dev/null +++ b/user/py3-olefile/APKBUILD @@ -0,0 +1,36 @@ +# Contributor: Max Rees +# Maintainer: Max Rees +pkgname=py3-olefile +_pkgname=olefile +pkgver=0.44 +pkgrel=0 +pkgdesc="A Python module to read/write MS OLE2 files" +url="https://pypi.python.org/pypi/olefile" +arch="noarch" +license="Custom" +depends="python3" +makedepends="py3-setuptools python3-dev" +install="" +giturl="https://github.com/decalage2/olefile" +verbase="$pkgver" +reporev="v$pkgver" +# The downloads from GitHub are missing the test files +source="https://dev.sick.bike/$pkgname-$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + cd "$builddir" + python3 setup.py build +} + +check() { + cd "$builddir" + PYTHONPATH="build/lib" python3 tests/test_olefile.py +} + +package() { + cd "$builddir" + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="bece8b040cb3572c1fa2536a21c1de4c05e560b641e1c6e4bf66772135c43d29e06c7fc47d6c07d3c351b1f741f49c63201657634c33e9124de892e9a0cc053f py3-olefile-0.44.tar.gz" -- cgit v1.2.3-70-g09d2