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

Merge branch 'pkgbuild' of github.com:j1g5awi/krunner-vscode into pkgbuild

This commit is contained in:
jigsaw 2023-07-30 14:10:20 +08:00
commit ffed5184b4
No known key found for this signature in database
GPG key ID: 41DDF5E52506A610

View file

@ -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(){
build() {
cd "$pkgname"
pip install .
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
}