From 2b691af41e674700818c425048dc93ed73c92651 Mon Sep 17 00:00:00 2001 From: patrick96 Date: Thu, 18 Jul 2019 16:24:15 +0200 Subject: [PATCH] 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. --- contrib/polybar-git.aur/PKGBUILD | 17 ++++++----------- contrib/polybar.aur/PKGBUILD | 16 +++++----------- 2 files changed, 11 insertions(+), 22 deletions(-) diff --git a/contrib/polybar-git.aur/PKGBUILD b/contrib/polybar-git.aur/PKGBUILD index 209ae6f7..020e4ebc 100644 --- a/contrib/polybar-git.aur/PKGBUILD +++ b/contrib/polybar-git.aur/PKGBUILD @@ -8,19 +8,14 @@ pkgdesc="A fast and easy-to-use status bar" arch=("i686" "x86_64") url="https://github.com/polybar/polybar" license=("MIT") -depends=("cairo" "xcb-util-image" "xcb-util-wm" "xcb-util-xrm" "xcb-util-cursor") -optdepends=("alsa-lib: alsa module support" - "pulseaudio: pulseaudio 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" +depends=("cairo" "xcb-util-image" "xcb-util-wm" "xcb-util-xrm" "xcb-util-cursor" + "alsa-lib" "pulseaudio" "libmpdclient" "libnl" "jsoncpp" "curl") +optdepends=("i3-wm: i3 module support" "ttf-unifont: Font used in example config" "siji-git: 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") + "xorg-fonts-misc: Font used in example config") +makedepends=("cmake" "git" "python" "python2" "pkg-config" "python-sphinx" + "i3-wm") provides=("polybar") conflicts=("polybar") install="${_pkgname}.install" diff --git a/contrib/polybar.aur/PKGBUILD b/contrib/polybar.aur/PKGBUILD index e9c8cb42..7fc7a7a3 100644 --- a/contrib/polybar.aur/PKGBUILD +++ b/contrib/polybar.aur/PKGBUILD @@ -7,19 +7,13 @@ pkgdesc="A fast and easy-to-use status bar" arch=("i686" "x86_64") url="https://github.com/polybar/polybar" license=("MIT") -depends=("cairo" "xcb-util-image" "xcb-util-wm" "xcb-util-xrm" "xcb-util-cursor") -optdepends=("alsa-lib: alsa module support" - "pulseaudio: pulseaudio 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" +depends=("cairo" "xcb-util-image" "xcb-util-wm" "xcb-util-xrm" "xcb-util-cursor" + "alsa-lib" "pulseaudio" "libmpdclient" "libnl" "jsoncpp" "curl") +optdepends=("i3-wm: i3 module support" "ttf-unifont: Font used in example config" "siji-git: Font used in example config" - "xorg-fonts-misc: Font used in example config" - "curl: github module support") -makedepends=("cmake" "git" "python" "python2" "pkg-config") + "xorg-fonts-misc: Font used in example config") +makedepends=("cmake" "git" "python" "python2" "pkg-config" "i3-wm") conflicts=("polybar-git") install="${pkgname}.install" source=(${url}/releases/download/${pkgver}/polybar-${pkgver}.tar)