polybar-dwm/contrib/polybar-git.aur/PKGBUILD
Patrick Ziegler 934e277ccd
Release 3.2.0 ()
Breaking Changes:

* `0 < label-NAME-maxlen < 3` will now throw an exception and disable the containing module, if ellipsis is enabled for that label. ()

Changelog:

Deprecations:
* `internal/volume` is now called `internal/alsa` ()
* temperature: The `%temperature%` is deprecated in favor of `%temperature-c%`()
* mpd: `icon-repeatone` is deprecated in favor of `icon-single` (), see 

Features:
* feat(mpd): Add support for icon-consume ()
* feat(bspwm): Add workspace separator () 
* feat(i3): Add workspace separator (), see 
* feat(build): Make polybar build on FreeBSD (, ), see 
* feat(volume): Add pulseaudio backend ()
* feat(script): Add %pid% token for tail commands ()
* feat(temp): Add temperature tokens without unit ()
* feat(memory): Add memory used/free ramp (), see 
* feat(memory): Add swap tokens () 
* feat(net): Add unknown-as-up option (), see 
* feat(config): Support fractional size and offset (), see 
* feat(xwindow): Add label-empty ()
* feat(battery): Add animation-discharging (analog to animation-charging) ()
* feat(config): Support pixel offset for bar size and offset values ()
* feat(mpd): Add `%album-artist%` token ()
* feat(net): Add local_ip6 token (), see 
* feat(net): Add nl80211 support (), see 

Fixes:
* fix(mpd): Wrong elapsed time when after standby (), see 
* fix(config): Wrong min, maxlen when using the same token multiple times (), see 
* fix(battery): use power_now correctly (), see 
* fix(mpd): Crash when mpd isn't running (), see 
* fix(xworkspaces): Respect 'enable-scroll' ()
* fix(xbacklight): Respect 'enable-scroll' ()
* fix(build): support xcb-proto >=1.13 (), see 
* fix(mpd): Respect MPD_HOST env variable (), see 
* fix(i3): Reconnect i3 IPC socket on restart/error (), see 
* fix(cursor): Occasional crash on mouseover (), see 
* fix(net): Mark 'not connected' on querying failure (), see 
* fix(gcc): Fix -Wstringop-truncation warning (, ), see 
* fix(builder): Don't truncate colors with same channels (), see 
* fix(bspwm): Consistent behavior when scrolling through multiple desktops (), see 
* fix(builder): Respect label-ellipsis option (), see 
2018-07-23 15:17:29 +02:00

47 lines
1.5 KiB
Bash

# Maintainer: Michael Carlberg <c@rlberg.se>
# Contributor: Michael Carlberg <c@rlberg.se>
_pkgname=polybar
pkgname="${_pkgname}-git"
pkgver=3.2.0
pkgrel=1
pkgdesc="A fast and easy-to-use status bar"
arch=("i686" "x86_64")
url="https://github.com/jaagr/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"
"ttf-unifont: Font used in example config"
"siji-git: Font used in example config"
"curl: github module support")
makedepends=("cmake" "git" "python" "python2" "pkg-config")
provides=("polybar")
conflicts=("polybar")
install="${_pkgname}.install"
source=("${_pkgname}::git+${url}.git")
md5sums=("SKIP")
pkgver() {
git -C "${_pkgname}" describe --long --tags | sed "s/-/.r/;s/-/./g"
}
prepare() {
git -C "${_pkgname}" submodule update --init --recursive
mkdir -p "${_pkgname}/build"
}
build() {
cd "${_pkgname}/build" || exit 1
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
cmake --build .
}
package() {
cmake --build "${_pkgname}/build" --target install -- DESTDIR="${pkgdir}"
install -Dm644 "${_pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}