From 779e299f53c7bf00992e1174fd0e586df8f39ea1 Mon Sep 17 00:00:00 2001 From: jigsaw Date: Mon, 28 Mar 2022 17:13:53 +0800 Subject: [PATCH] Initital commit --- .SRCINFO | 17 +++++++++++++++++ PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..cd1edbf --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = plasma5-runners-vscode-git + pkgdesc = KRunner plugin for quickly opening recent VSCode workspaces + pkgver = r5.7c6bc0c + pkgrel = 1 + url = https://github.com/j1g5awi/krunner-vscode + arch = any + license = GPL3 + makedepends = git + makedepends = python-poetry + depends = krunner + depends = python + depends = python-gobject + depends = dbus-python + source = plasma5-runners-vscode-git::git+https://github.com/j1g5awi/krunner-vscode + md5sums = SKIP + +pkgname = plasma5-runners-vscode-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..f78d711 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Jigsaw + +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') +build(){ + cd "$pkgname" + pip install . +} +package() { + cd "$pkgname" + 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 +} \ No newline at end of file