summaryrefslogtreecommitdiff
path: root/community/py3-striprtf/APKBUILD
blob: 8a4d11589b62ee2a8242c4e59e11f5a70202cbc2 (plain)
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: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-striprtf
_pkgorig=striprtf
pkgver=0.0.22
pkgrel=1
pkgdesc="Stripping rtf to plain old text"
url="https://github.com/joshy/striprtf"
arch="noarch"
license="BSD-3"
depends="python3"
checkdepends="python3-dev py3-pytest"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/joshy/$_pkgorig/archive/v$pkgver/$_pkgorig-$pkgver.tar.gz"
builddir="$srcdir/$_pkgorig-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
0d4a51d6c246225054b029617b45b490fa2ca44ad70d4a41e7183395efa118f5692219e094a0184c0a7487cfb2b3d69d80fda1e44cba18d9cf5ca589e6729bbd  py3-striprtf-0.0.22.tar.gz
"