# Description: A tool that makes it easy to create Python bindings for C and C++ libraries
# URL: https://github.com/Python-SIP/sip
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: python3-hatchling python3-ply python3-toml

name=sip
version=6.15.3
release=1
source=(https://pypi.org/packages/source/s/sip/sip-$version.tar.gz)

build() {
  cd sip-$version

  /usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
  /usr/bin/python3 -m installer --compile-bytecode 2 --destdir=$PKG dist/*.whl

  find $PKG \
    -iname "*README*" \
    -delete
}
