From b4adca94bb9921cfe6871d0cb1aec1876ee7d5cb Mon Sep 17 00:00:00 2001 From: jigsaw Date: Mon, 28 Mar 2022 18:22:10 +0800 Subject: [PATCH] fix post_install & post_remove --- .SRCINFO | 3 ++- PKGBUILD | 11 ++--------- krunner.install | 7 +++++++ 3 files changed, 11 insertions(+), 10 deletions(-) create mode 100644 krunner.install diff --git a/.SRCINFO b/.SRCINFO index cd1edbf..47c38dd 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,8 +1,9 @@ pkgbase = plasma5-runners-vscode-git pkgdesc = KRunner plugin for quickly opening recent VSCode workspaces pkgver = r5.7c6bc0c - pkgrel = 1 + pkgrel = 2 url = https://github.com/j1g5awi/krunner-vscode + install = krunner.install arch = any license = GPL3 makedepends = git diff --git a/PKGBUILD b/PKGBUILD index f78d711..f1f007c 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,7 +2,7 @@ pkgname=plasma5-runners-vscode-git pkgver=r5.7c6bc0c -pkgrel=1 +pkgrel=2 pkgdesc="KRunner plugin for quickly opening recent VSCode workspaces" arch=('any') url="https://github.com/j1g5awi/krunner-vscode" @@ -29,11 +29,4 @@ pkgver() { 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 +install=krunner.install diff --git a/krunner.install b/krunner.install new file mode 100644 index 0000000..16d437b --- /dev/null +++ b/krunner.install @@ -0,0 +1,7 @@ +post_install() { + kquitapp5 krunner +} + +post_remove() { + kquitapp5 krunner +} \ No newline at end of file