add optional dependence & manage X11 dbus
This commit is contained in:
parent
f98b6a03e9
commit
8e4dcb4050
8
PKGBUILD
8
PKGBUILD
@ -1,7 +1,7 @@
|
||||
# Maintainer: Vincent.Ducamps <aur@ducamps.win>
|
||||
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}"
|
||||
|
Loading…
Reference in New Issue
Block a user