Files
MSYS2-packages/python-zstandard/PKGBUILD
2022-12-17 15:10:02 +01:00

39 lines
909 B
Bash

# Maintainer: Jeremy Drake <github@jdrake.com>
pkgname=python-zstandard
pkgver=0.19.0
pkgrel=2
pkgdesc='Python bindings to the Zstandard (zstd) compression library'
arch=('i686' 'x86_64')
url="https://github.com/indygreg/python-zstandard"
license=('spdx:BSD-3-Clause')
depends=("python")
makedepends=(
"python-devel"
'gcc'
"python-setuptools"
"python-wheel"
"python-build"
"python-installer"
)
options=('!emptydirs')
source=("https://github.com/indygreg/${pkgname}/archive/${pkgver}.tar.gz")
sha256sums=('8106c216bcaed7b70e6515b407adbfd21dd84c9855c9771530e0a3561b130454')
prepare() {
cd "${pkgname}-${pkgver}"
}
build() {
cd "${pkgname}-${pkgver}"
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "${pkgname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}