add optional dependence & manage X11 dbus

This commit is contained in:
vincent 2020-10-14 18:48:48 +02:00
parent f98b6a03e9
commit 8e4dcb4050

View File

@ -1,7 +1,7 @@
# Maintainer: Vincent.Ducamps <aur@ducamps.win> # Maintainer: Vincent.Ducamps <aur@ducamps.win>
pkgname=gnome-shell-extension-pop-shell-git pkgname=gnome-shell-extension-pop-shell-git
pkgdesc="Pop Shell - Tiling window management in Gnome (WIP)" pkgdesc="Pop Shell - Tiling window management in Gnome (WIP)"
pkgver=r555.5c93ca0 pkgver=r576.fd2380c
pkgrel=1 pkgrel=1
_gitorg=pop-os _gitorg=pop-os
_gitname=shell _gitname=shell
@ -10,6 +10,7 @@ arch=(any)
url="https://github.com/pop-os/shell" url="https://github.com/pop-os/shell"
license=("GPLv3") license=("GPLv3")
install="pop-shell.install" install="pop-shell.install"
optdepends=('gnome-shell-extensions: native-window extension for improved window placement')
conflicts=("gnome-shell-extension-pop-shell") conflicts=("gnome-shell-extension-pop-shell")
makedepends=("typescript" "git") makedepends=("typescript" "git")
depends=("gnome-shell" "pop-shell-shortcuts-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}") source=("${_dir}::git+https://github.com/${_gitorg}/${_gitname}.git#branch=${_gitbranch}")
sha256sums=("SKIP") sha256sums=("SKIP")
if [[ $(echo $XDG_SESSION_TYPE) = x11 ]]; then
depends+=('dbus-x11')
elif [[ $(echo $XDG_SESSION_TYPE) = wayland ]]; then
depends+=('dbus')
fi
pkgver() { pkgver() {
cd "${srcdir}/${_dir}" cd "${srcdir}/${_dir}"