From 8e4dcb405044bf0956ce5396ee045ce2ab67a470 Mon Sep 17 00:00:00 2001 From: vincent Date: Wed, 14 Oct 2020 18:48:48 +0200 Subject: [PATCH] add optional dependence & manage X11 dbus --- PKGBUILD | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/PKGBUILD b/PKGBUILD index dc87950..f85336f 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Vincent.Ducamps pkgname=gnome-shell-extension-pop-shell-git pkgdesc="Pop Shell - Tiling window management in Gnome (WIP)" -pkgver=r555.5c93ca0 +pkgver=r576.fd2380c pkgrel=1 _gitorg=pop-os _gitname=shell @@ -10,6 +10,7 @@ arch=(any) url="https://github.com/pop-os/shell" license=("GPLv3") install="pop-shell.install" +optdepends=('gnome-shell-extensions: native-window extension for improved window placement') conflicts=("gnome-shell-extension-pop-shell") makedepends=("typescript" "git") depends=("gnome-shell" "pop-shell-shortcuts-git") @@ -19,6 +20,11 @@ _dir="${_gitname}" source=("${_dir}::git+https://github.com/${_gitorg}/${_gitname}.git#branch=${_gitbranch}") sha256sums=("SKIP") +if [[ $(echo $XDG_SESSION_TYPE) = x11 ]]; then + depends+=('dbus-x11') +elif [[ $(echo $XDG_SESSION_TYPE) = wayland ]]; then + depends+=('dbus') +fi pkgver() { cd "${srcdir}/${_dir}"