#!/usr/bin/env bash name='py3-pyproject-hooks' release='4' version='1.2.0' url='https://github.com/pypa/pyproject-hooks' description='Python project hooks' email='aliriza.keskin@pardus.org.tr' maintainer='aliriza' license=('GPLv3') source=("https://github.com/pypa/pyproject-hooks/archive/refs/tags/v$version.tar.gz") depends=(python) makedepends=(py3-build) sha256sums=('d993cda99f6c41c2679a0cd5528fc15608cc114df26553deb41db62185c11206') group=(dev.python) uses=() arch=('x86_64') cd pyproject-hooks-$version export PYTHONPATH=src/pyproject_hooks ## this package require itself. so we must use venv for build prepare(){ python3 -m venv . source bin/activate pip3 install build installer } build () { source bin/activate python -m build --wheel } package () { python -m installer --destdir="$DESTDIR" dist/*.whl mv $DESTDIR/usr/lib/python3.*/site-packages $DESTDIR/usr/lib/python3 }