From 29195247acada9867c43800f113a21fa8b5d4445 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 30 Jul 2023 06:57:06 +0100 Subject: [PATCH] Stop global `pip install` (#4) Global installs aren't supported, so build a wheel and installl that into the pkgdir --- PKGBUILD | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index f78d711..c05d6ce 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -11,12 +11,14 @@ depends=('krunner' 'python' 'python-gobject' 'dbus-python') makedepends=('git' 'python-poetry') source=("plasma5-runners-vscode-git::git+https://github.com/j1g5awi/krunner-vscode") md5sums=('SKIP') -build(){ - cd "$pkgname" - pip install . + +build() { + cd "$pkgname" + python -m build -wn } package() { cd "$pkgname" + python -m installer -d "$pkgdir" dist/*.whl mkdir -p "${pkgdir}/usr/share/kservices5/" mkdir -p "${pkgdir}/usr/share/dbus-1/services/" install ./package/plasma-runner-vscode.desktop "${pkgdir}/usr/share/kservices5/" @@ -36,4 +38,4 @@ post_install() { post_remove() { kquitapp5 krunner -} \ No newline at end of file +}