41 lines
933 B
Bash
41 lines
933 B
Bash
#!/usr/bin/env bash
|
|
name='py3-pyproject-hooks'
|
|
release='3'
|
|
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 () {
|
|
# mkdir $DESTDIR/usr/lib64/python3 -p
|
|
# cp -prfv src/* $DESTDIR/usr/lib64/python3
|
|
python -m installer --destdir="$DESTDIR" dist/*.whl
|
|
}
|
|
|