summaryrefslogtreecommitdiff
path: root/user/py3-olefile/APKBUILD
blob: 0c169219246c406eb4110d450c1f3424afa3aac5 (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
32
33
34
# Contributor: Max Rees <maxcrees@me.com>
# Maintainer: Max Rees <maxcrees@me.com>
pkgname=py3-olefile
_pkgname=olefile
pkgver=0.45.1
pkgrel=0
pkgdesc="A Python module to read/write MS OLE2 files"
url="https://pypi.python.org/project/olefile"
arch="noarch"
license="BSD-2-Clause Custom"
depends="python3"
makedepends="python3-dev unzip"
install=""
giturl="https://github.com/decalage2/olefile"
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="31f7584553304b186aad88f1988dfa12ceb34a50d546a38181280a816cfcda8dc54ff502afb31a928d647e6106c9e4878bfac8cec31d24018fdbab65c7007e49  py3-olefile-0.45.1.zip"