projects/aports·blob master · refs

32 lines · 1015 B

1# Contributor: Fabian Affolter <[email protected]>
2# Maintainer: Fabian Affolter <[email protected]>
3pkgname=py3-python-archive
4_pkgname=python-archive
5pkgver=0.2
6pkgrel=8
7pkgdesc="Library for extracting zip and tar archives"
8url="https://github.com/gdub/python-archive"
9arch="noarch"
10license="MIT"
11replaces="py-archive" # for backwards compatibility
12provides="py-archive=$pkgver-r$pkgrel" # for backwards compatibility
13makedepends="py3-setuptools py3-gpep517"
14subpackages="$pkgname-pyc"
15source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
16builddir="$srcdir"/$_pkgname-$pkgver
17options="!check" # no tests
18
19build() {
20 gpep517 build-wheel \
21 --wheel-dir .dist \
22 --output-fd 3 3>&1 >&2
23}
24
25package() {
26 gpep517 install-wheel --destdir "$pkgdir" \
27 .dist/*.whl
28}
29
30sha512sums="
315f02fe522f44989c1b61db48239cdbda5536ff685174ba93af028591eba276dcefd7655aad3a458d92140f163724d87bbe25711c78a82e06dfb382b6ae9f5683 python-archive-0.2.tar.gz
32"