summaryrefslogtreecommitdiff
path: root/repo/python-gpep517/python-gpep517.xibuild
diff options
context:
space:
mode:
Diffstat (limited to 'repo/python-gpep517/python-gpep517.xibuild')
-rw-r--r--repo/python-gpep517/python-gpep517.xibuild26
1 files changed, 26 insertions, 0 deletions
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
+}
+