kde integration for pamac

kpacman is a krunner plugin for list packages (installed or not) - not aur
One click open pamac at package page

acapture_20200415_004042

thanks to Gnome integration for pamac for idea

For the moment not in aur
PKGBUILD :

pkgname=krunner-pacman
pkgver=0.1.2
pkgrel=1
pkgdesc="list installed packages"
arch=('any')
license=('GPL')
depends=('krunner' 'pyalpm')
optdepends=('pamac: A Gtk3 frontend for libalpm')
source=("https://github.com/papajoker/krunner-pacman/archive/v0.1.2.tar.gz")
sha512sums=('SKIP')

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  install -d ${pkgdir}/usr/{share/{kservices5,dbus-1/services},lib/qt/plugins}
  cp resources/net.kpacman2.service ${pkgdir}/usr/share/dbus-1/services/
  cp resources/plasma-runner-kpacman.desktop ${pkgdir}/usr/share/kservices5/
  install -m755 plugin/krunner_pacman.py ${pkgdir}/usr/lib/qt/plugins/krunner_pacman.py
} 

After install, run this command for load plugin

kquitapp5 krunner
5 Likes

The title says it's KDE integreation for Pamac. Therefore, shouldn't the project be called
kpamac? :thinking:

@philm I think this would be good for the coming kde edition release

@Yochanan
Right now it's a mock-up, it uses alpm and not pamac(optional). If pamac not installed, action go to package url

@Chrysostomus
with plasma we have krunner appstream plugin but load discover (not found source code, only this ! )...
For best integration, if @guinux like, the best is to write this plugin in pamac ? code is simple : 2 dbus functions

2 Likes

Pamac 9.5 will support appstream links so we could start testing

yes, but here this plugin is not as appstream
appstream display only apps for install, here we have a pacman -Ss , therefore more technical and completely package and not only for install as appstream

acapture_krun21

Then make it only use libpamac and we can simply add it into pamac code.

new version 0.1.1 krunner-pamac
thanks to @guinux for precious help

exists a pkgbuild test :

wget https://gitlab.manjaro.org/papajoke/krunner-pamac/-/raw/master/resources/PKGBUILD
makepkg -sfci

news:

  • use pamac for search
  • 2 options in ~/.config/krunnerrc
2 Likes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by