mirror of
https://github.com/j1g5awi/krunner-vscode.git
synced 2024-11-21 21:39:30 +00:00
Merge branch 'pkgbuild' of github.com:j1g5awi/krunner-vscode into pkgbuild
This commit is contained in:
commit
ffed5184b4
1 changed files with 14 additions and 4 deletions
18
PKGBUILD
18
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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue