blob: a46f3b9102deb4db6854a971f18eec2d2ea32e5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
}
|