blob: ead05a4c98507d32c49c4a416c9fc7aa26c66685 (
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
|
# Maintainer: Jesse R Codling < codling at umich dot edu >
# Contributor: Michał Wojdyła < micwoj9292 at gmail dot com >
pkgname=python-zlib-ng
pkgver=0.5.1
pkgrel=1
pkgdesc="A drop-in replacement for Python's zlib and gzip modules using zlib-ng"
arch=(any)
url="https://github.com/pycompression/${pkgname}"
license=('PSF-2.0')
depends=('python' 'zlib-ng')
makedepends=('git' 'python-setuptools' 'python-build' 'python-installer' 'python-wheel' 'python-versioningit')
checkdepends=('python-tox' 'python-tests' 'python-pip')
source=("git+${url}#tag=v${pkgver}")
sha256sums=('9ad66f69a2e107e18c47b42968ad1860b15aa7faaa0d5fb36d74b583b5ac98c8')
export PYTHON_ZLIB_NG_LINK_DYNAMIC=1
build() {
cd "$pkgname"
python -m build --wheel --no-isolation
}
check() {
cd "$pkgname"
tox
}
package() {
cd "$pkgname"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|