summaryrefslogtreecommitdiff
path: root/testing/py3-unidiff/APKBUILD
blob: bcdc2c9e3ba946ccbfab828d9e19acc755c045b9 (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
32
33
34
35
36
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer:
pkgname=py3-unidiff
pkgver=0.7.4
pkgrel=1
pkgdesc="Unified diff python parsing/metadata extraction library"
url="https://github.com/matiasb/python-unidiff"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/matiasb/python-unidiff/archive/refs/tags/v$pkgver.tar.gz
	fix-test-script.patch"
builddir="$srcdir/python-unidiff-$pkgver"

build() {
	python3 setup.py build
}

check() {
	sh run_tests.sh
}

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

	mkdir -p "$pkgdir"/usr/share/doc/$pkgname
	install -m644 README.rst HISTORY AUTHORS \
		"$pkgdir"/usr/share/doc/$pkgname
}

sha512sums="
b8e1d8165efcc5788707432c3c3236d97ec86ae577ff3dd7ec405809dbaef3153a835572844f7ef2a4d5d2c9b60dee586717e4cf0acf4db8049ab7c5af178a07  py3-unidiff-0.7.4.tar.gz
3c42b36da7a549d59647a2a489cb85f45d5d51c839b206893e39f2bc5fc14917719e1aa5cd1042758c55bc7a218c63f1df3bb76c28c57724cc6a890ecafa64bc  fix-test-script.patch
"