From f29d569cd33a73da5ad675f43a34ad53c5cc9bc6 Mon Sep 17 00:00:00 2001 From: davidovski Date: Thu, 2 Feb 2023 14:10:02 +0000 Subject: Work --- repo/python-gpep517/python-gpep517.xibuild | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 repo/python-gpep517/python-gpep517.xibuild (limited to 'repo/python-gpep517/python-gpep517.xibuild') diff --git a/repo/python-gpep517/python-gpep517.xibuild b/repo/python-gpep517/python-gpep517.xibuild new file mode 100644 index 0000000..a46f3b9 --- /dev/null +++ b/repo/python-gpep517/python-gpep517.xibuild @@ -0,0 +1,26 @@ +#!/bin/sh + +NAME="python-gpep517" +DESC="Minimal backend script to aid installing Python packages through PEP 517-compliant build systems" + +MAKEDEPS="python" + +PKG_VER=9 +SOURCE="https://github.com/mgorny/gpep517/archive/v$PKG_VER/gpep517-v$PKG_VER.tar.gz" + +ADDITIONAL=" +gpep517 +" +check() { + python3 -m gpep517 --help +} + +package() { + local sitedir="$(python3 -c 'import site;print(site.getsitepackages()[0])')" + mkdir -p "$PKG_DEST/$sitedir" + cp -a gpep517 "$PKG_DEST/$sitedir" + + mkdir -p "$PKG_DEST/usr/bin" + cp -a gpep517 "$PKG_DEST"/usr/bin +} + -- cgit v1.2.1