summaryrefslogtreecommitdiff
path: root/templates/pybuild
diff options
context:
space:
mode:
Diffstat (limited to 'templates/pybuild')
-rw-r--r--templates/pybuild/template27
1 files changed, 27 insertions, 0 deletions
diff --git a/templates/pybuild/template b/templates/pybuild/template
new file mode 100644
index 0000000..011a9ae
--- /dev/null
+++ b/templates/pybuild/template
@@ -0,0 +1,27 @@
+pkgname=pybuild
+version=1.5.0
+build_no=1
+upstream="https://github.com/pypa/build/archive/refs/tags/${version}.tar.gz"
+
+cddir="build-${version}"
+
+extras=(
+ https://files.pythonhosted.org/packages/0d/fe/6bea5c9162869c5beba5d9c8abbed835ec85bf1ec1fba05a3822325c45f3/build-1.5.0-py3-none-any.whl
+)
+
+makedepends=(python pyprojecthooks)
+
+function do_configure {
+ echo "bootstrapping build"
+ cp /build/build-1.5.0-py3-none-any.whl .
+ python -m zipfile -e build-1.5.0-py3-none-any.whl "${PY_SITE_PACKAGES}"
+}
+
+function do_build {
+ python -m build
+}
+
+function do_install {
+# rm -rf "${PYTHON_SITE_PACKAGES}/build*"
+ python -m zipfile -e build-1.5.0-py3-none-any.whl "${DESTDIR}/${PY_SITE_PACKAGES}"
+} \ No newline at end of file