aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-olefile/APKBUILD
blob: a57bcae737ac74ecba03a88581422bec4233c974 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-olefile
pkgver=0.46
pkgrel=4
pkgdesc="Python module to read/write MS OLE2 files"
url="https://www.decalage.info/olefile"
arch="noarch"
license="BSD-2-Clause"
makedepends="python3-dev py3-setuptools"
source="https://github.com/decalage2/olefile/releases/download/v$pkgver/olefile-$pkgver.tar.gz"
builddir="$srcdir"/${pkgname/py3-/}-$pkgver

provides="py-olefile=$pkgver-r$pkgrel" # backwards compatibility
replaces="py-olefile" # backwards compatiblity

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="285dff1eb250d464e338f892dca3e465504523fd956ceeb8bfe40eb9a82510713f64f490749a23bfdc911555f8d9c49580af5b03a15063c2598bb1a39999778f  olefile-0.46.tar.gz"