2022-03-28 10:13:53 +01:00
|
|
|
# Maintainer: Jigsaw <j1g5aw@foxmail.com>
|
|
|
|
|
|
|
|
pkgname=plasma5-runners-vscode-git
|
|
|
|
pkgver=r5.7c6bc0c
|
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="KRunner plugin for quickly opening recent VSCode workspaces"
|
|
|
|
arch=('any')
|
|
|
|
url="https://github.com/j1g5awi/krunner-vscode"
|
|
|
|
license=('GPL3')
|
|
|
|
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')
|
2023-07-30 06:57:06 +01:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$pkgname"
|
|
|
|
python -m build -wn
|
2022-03-28 10:13:53 +01:00
|
|
|
}
|
|
|
|
package() {
|
|
|
|
cd "$pkgname"
|
2023-07-30 06:57:06 +01:00
|
|
|
python -m installer -d "$pkgdir" dist/*.whl
|
2022-03-28 10:13:53 +01:00
|
|
|
mkdir -p "${pkgdir}/usr/share/kservices5/"
|
|
|
|
mkdir -p "${pkgdir}/usr/share/dbus-1/services/"
|
|
|
|
install ./package/plasma-runner-vscode.desktop "${pkgdir}/usr/share/kservices5/"
|
|
|
|
install ./package/com.github.j1g5awi.vscode.service "${pkgdir}/usr/share/dbus-1/services/"
|
|
|
|
}
|
|
|
|
pkgver() {
|
|
|
|
cd "$pkgname"
|
|
|
|
( set -o pipefail
|
|
|
|
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
|
|
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
kquitapp5 krunner
|
|
|
|
}
|
|
|
|
|
|
|
|
post_remove() {
|
|
|
|
kquitapp5 krunner
|
2023-07-30 06:57:06 +01:00
|
|
|
}
|