aur: Make feature deps hard deps

In the AUR optdepends means that the package can run without optdepends
installed. In polybar most features, if enabled at compile time, cannot
run without their dependencies and will crash polybar. Now the
optdepends only contains truly optional dependencies.

Polybar can run without the i3-wm package because it only relies on the
`i3` executable and is not dynamically linked against any library in i3.
This commit is contained in:
patrick96 2019-07-18 16:24:15 +02:00 committed by Patrick Ziegler
parent fe7dc28b07
commit 2b691af41e
2 changed files with 11 additions and 22 deletions

View File

@ -8,19 +8,14 @@ pkgdesc="A fast and easy-to-use status bar"
arch=("i686" "x86_64") arch=("i686" "x86_64")
url="https://github.com/polybar/polybar" url="https://github.com/polybar/polybar"
license=("MIT") license=("MIT")
depends=("cairo" "xcb-util-image" "xcb-util-wm" "xcb-util-xrm" "xcb-util-cursor") depends=("cairo" "xcb-util-image" "xcb-util-wm" "xcb-util-xrm" "xcb-util-cursor"
optdepends=("alsa-lib: alsa module support" "alsa-lib" "pulseaudio" "libmpdclient" "libnl" "jsoncpp" "curl")
"pulseaudio: pulseaudio module support" optdepends=("i3-wm: i3 module support"
"libmpdclient: mpd module support"
"libnl: network module support"
"wireless_tools: network module support (legacy)"
"jsoncpp: i3 module support"
"i3-wm: i3 module support"
"ttf-unifont: Font used in example config" "ttf-unifont: Font used in example config"
"siji-git: Font used in example config" "siji-git: Font used in example config"
"xorg-fonts-misc: Font used in example config" "xorg-fonts-misc: Font used in example config")
"curl: github module support") makedepends=("cmake" "git" "python" "python2" "pkg-config" "python-sphinx"
makedepends=("cmake" "git" "python" "python2" "pkg-config" "python-sphinx") "i3-wm")
provides=("polybar") provides=("polybar")
conflicts=("polybar") conflicts=("polybar")
install="${_pkgname}.install" install="${_pkgname}.install"

View File

@ -7,19 +7,13 @@ pkgdesc="A fast and easy-to-use status bar"
arch=("i686" "x86_64") arch=("i686" "x86_64")
url="https://github.com/polybar/polybar" url="https://github.com/polybar/polybar"
license=("MIT") license=("MIT")
depends=("cairo" "xcb-util-image" "xcb-util-wm" "xcb-util-xrm" "xcb-util-cursor") depends=("cairo" "xcb-util-image" "xcb-util-wm" "xcb-util-xrm" "xcb-util-cursor"
optdepends=("alsa-lib: alsa module support" "alsa-lib" "pulseaudio" "libmpdclient" "libnl" "jsoncpp" "curl")
"pulseaudio: pulseaudio module support" optdepends=("i3-wm: i3 module support"
"libmpdclient: mpd module support"
"libnl: network module support"
"wireless_tools: network module support (legacy)"
"jsoncpp: i3 module support"
"i3-wm: i3 module support"
"ttf-unifont: Font used in example config" "ttf-unifont: Font used in example config"
"siji-git: Font used in example config" "siji-git: Font used in example config"
"xorg-fonts-misc: Font used in example config" "xorg-fonts-misc: Font used in example config")
"curl: github module support") makedepends=("cmake" "git" "python" "python2" "pkg-config" "i3-wm")
makedepends=("cmake" "git" "python" "python2" "pkg-config")
conflicts=("polybar-git") conflicts=("polybar-git")
install="${pkgname}.install" install="${pkgname}.install"
source=(${url}/releases/download/${pkgver}/polybar-${pkgver}.tar) source=(${url}/releases/download/${pkgver}/polybar-${pkgver}.tar)