# Description: A python wrapper of the C library 'Google CRC32C' # URL: https://github.com/googleapis/python-crc32c # Maintainer: Petar Petrov, slackalaxy at gmail dot com # Depends on: python3-setuptools python3-wheel name=python3-google-crc32c version=1.8.0 release=2 source=(https://github.com/googleapis/python-crc32c/archive/refs/tags/v$version.tar.gz) renames=(python-crc32c-$version.tar.gz) build() { cd python-crc32c-$version /usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation /usr/bin/python3 -m installer --destdir=$PKG dist/*.whl find $PKG -iname "README*" -delete rm -rf $PKG/usr/lib/python3*/site-packages/*.dist-info/licenses find $PKG -path "*.dist-info/*" -type f \( -iname "LICENSE*" -o -iname "COPYING*" \) -delete chmod -R g-w $PKG }