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