summaryrefslogblamecommitdiff
path: root/user/py3-olefile/APKBUILD
blob: c44ee5842e07e4dada791638e72f73609a1d6be3 (plain) (tree)
1
2
3
4
5
6
7
8
9



                                         
           

                                                     
                                      
             

                                 
                 
                               
                                                                                                               














                                                               
                                                                                    

 
                                                                                                                                                                   
# 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"
source="$pkgname-$pkgver.zip::https://files.pythonhosted.org/packages/source/o/$_pkgname/$_pkgname-$pkgver.zip"
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"
	install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
}

sha512sums="2a19c443c1e4519680027ff557b5f737e6d0e707c1932a759ea85105717f4f6393149e0eb04589fe2b2b7e0c474042cfe34801faad38517799483b711001b4ac  py3-olefile-0.46.zip"