1
Fork 0
mirror of https://github.com/j1g5awi/krunner-vscode.git synced 2024-11-24 17:59:29 +00:00

Stop global pip install (#4)

Global installs aren't supported, so build a wheel and installl that
into the pkgdir
This commit is contained in:
Jake Howard 2023-07-30 06:57:06 +01:00 committed by GitHub
parent 779e299f53
commit 29195247ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,12 +11,14 @@ depends=('krunner' 'python' 'python-gobject' 'dbus-python')
makedepends=('git' 'python-poetry') makedepends=('git' 'python-poetry')
source=("plasma5-runners-vscode-git::git+https://github.com/j1g5awi/krunner-vscode") source=("plasma5-runners-vscode-git::git+https://github.com/j1g5awi/krunner-vscode")
md5sums=('SKIP') md5sums=('SKIP')
build(){
cd "$pkgname" build() {
pip install . cd "$pkgname"
python -m build -wn
} }
package() { package() {
cd "$pkgname" cd "$pkgname"
python -m installer -d "$pkgdir" dist/*.whl
mkdir -p "${pkgdir}/usr/share/kservices5/" mkdir -p "${pkgdir}/usr/share/kservices5/"
mkdir -p "${pkgdir}/usr/share/dbus-1/services/" mkdir -p "${pkgdir}/usr/share/dbus-1/services/"
install ./package/plasma-runner-vscode.desktop "${pkgdir}/usr/share/kservices5/" install ./package/plasma-runner-vscode.desktop "${pkgdir}/usr/share/kservices5/"
@ -36,4 +38,4 @@ post_install() {
post_remove() { post_remove() {
kquitapp5 krunner kquitapp5 krunner
} }