Skip to content

Instantly share code, notes, and snippets.

@Ashark
Last active December 27, 2023 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ashark/e163f7db23e19b177de50ded58a37845 to your computer and use it in GitHub Desktop.
Save Ashark/e163f7db23e19b177de50ded58a37845 to your computer and use it in GitHub Desktop.
WIP plasma6-runners-jetbrains-runner-git PKGBUILD, see https://github.com/alex1701c/JetBrainsRunner/issues/42
# Maintainer: Andrew Shark <ashark linuxcomp ru>
pkgname=plasma6-runners-jetbrains-runner-git
_pkgname=plasma6-runners-jetbrains-runner
pkgver=r179.9f3e9d3
pkgrel=2
pkgdesc="Launch your recent JetBrains projects from KRunner"
license=('LGPL3')
_project_name="JetBrainsRunner"
_url='https://github.com/alex1701c'
_submodule_name="jetbrains-api"
url="$_url/$_project_name"
arch=('x86_64')
depends=('krunner' 'libnotify' 'kcmutils' 'kio')
makedepends=('git' 'cmake' 'extra-cmake-modules')
provides=("$_pkgname")
conflicts=("$_pkgname" plasma5-runners-jetbrains-runner-git)
_branch=master
source=("git+$url#branch=$_branch"
"git+$_url/$_submodule_name#branch=$_branch")
sha256sums=('SKIP'
'SKIP')
pkgver() {
cd "$srcdir/$_project_name"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/$_project_name"
git submodule init
git config submodule.src/jetbrains-api.url "$srcdir/jetbrains-api"
git -c protocol.file.allow=always submodule update
}
build() {
mkdir -p "$srcdir/$_project_name/build"
cd "$srcdir/$_project_name/build"
cmake -DCMAKE_INSTALL_PREFIX=/usr -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DBUILD_WITH_QT6=ON ..
make
}
package() {
cd "$srcdir/$_project_name/build"
make DESTDIR="$pkgdir" install
}
post_install() {
kquitapp5 krunner 2> /dev/null
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment