41 lines
945 B
Bash
41 lines
945 B
Bash
#!/usr/bin/env bash
|
|
name='py3-packaging'
|
|
release='4'
|
|
version='25.0'
|
|
url='https://pypi.org/project/packaging'
|
|
description='Core utilities for Python3 packages'
|
|
email='brkt8khn@gmail.com'
|
|
maintainer='brkt8khn'
|
|
license=('Apache-2.0 AND BSD-2-Clause')
|
|
source=("https://github.com/pypa/packaging/archive/refs/tags/${version}.tar.gz")
|
|
depends=(python)
|
|
makedepends=(py3-build py3-installer)
|
|
sha256sums=('15b6ba95eb12d8f99dcf215ea37cbea16812ef28358e8ef3d9344acb827acac1')
|
|
group=(dev.python)
|
|
uses=()
|
|
arch=('x86_64')
|
|
|
|
cd "packaging"-$version
|
|
|
|
export PYTHONPATH=src/packaging
|
|
|
|
## this package require itself. so we must use venv for build
|
|
prepare(){
|
|
python3 -m venv .
|
|
source bin/activate
|
|
pip3 install build installer flit
|
|
}
|
|
|
|
|
|
build(){
|
|
source bin/activate
|
|
python -m build -nw
|
|
}
|
|
|
|
package(){
|
|
# mkdir -p $DESTDIR/usr/lib64/python3
|
|
# cp -prfv src/* $DESTDIR/usr/lib64/python3
|
|
python -m installer --destdir="$DESTDIR" dist/*.whl
|
|
}
|
|
|