diff --git a/PKGBUILD b/PKGBUILD index b9c499c..3b6e1a2 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,7 +2,7 @@ pkgname=plasma5-runners-vscode-git pkgver=r5.7c6bc0c -pkgrel=3 +pkgrel=4 pkgdesc="KRunner plugin for quickly opening recent VSCode workspaces" arch=('any') url="https://github.com/j1g5awi/krunner-vscode" @@ -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/" @@ -29,3 +31,11 @@ pkgver() { printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" ) } + +post_install() { + kquitapp5 krunner +} + +post_remove() { + kquitapp5 krunner +}