polybar-dwm/contrib/polybar-git.aur/PKGBUILD

48 lines
1.5 KiB
Bash
Raw Normal View History

2016-11-20 02:00:31 +00:00
# Maintainer: Michael Carlberg <c@rlberg.se>
# Contributor: Michael Carlberg <c@rlberg.se>
_pkgname=polybar
pkgname="${_pkgname}-git"
Release 3.1.0 (#863) Breaking Changes: * Date module no longer supports non-padded specifiers (i.e. `%-d`) and potentially other specifiers, see #792 - Check http://en.cppreference.com/w/cpp/io/manip/put_time to see supported specifiers * Setting background color to `background-0` with gradients (refer to https://github.com/jaagr/polybar/wiki/Known-Issues) Changelog: Features: * Feat(mpd): State-specific formats (`format-playing`, `format-paused`, `format-stopped`) (#567), see #524 * Feat(ipc): Visibility commands (show, hide, toggle, restart, quit) (b6c5563) * Feat(shell): Bash completion (#588) * Feat(menu): `expand-right` option (#658), see #655 * Feat(temperature): hwmon sysfs support (#688), see #404 * Feat(cursor): Change cursors over clickable/scrollable areas (#727), see #721 * Feat(temperature): Fahrenheit and Celsius tokens (#804) * Feat(mpd): Use mpd name tag or URI as fallback for title-less tracks (#823), see #815 Fixes: * Fix(i3): Clicking workspaces without index (#521), see #520 * Fix(parser): Prefix options overriding format options (#729), see #544 * Fix(parser): Overline tags (eebf105) * Fix(process_util): Prefix shell environment variable (`$POLYBAR_SHELL`) (86ff947), see #566 * Fix(parser): `%{R}` tag (reverse colors) (0bd8f1f), see #585 * Fix(renderer): Center block position with tray (389bae2 & #673), see #551 & #672 * Fix(xworkpaces): Active workspace with XMonad (#587), see #411 & #535 * Fix(config): Expand tilde, environment variable (d3b0670 & #724), see #603 & #719 * Fix(build): Remove curlbuild.h (#648), see #647 * Fix(renderer): Off by one error for actions (#663), see #661 * Fix(gcc): GCC 7.1 ([jaagr/xpp/#6](https://github.com/jaagr/xpp/pull/6)) * Fix(fs): Use `bytes_available` for `percentage_used` (138f5fa), see #710 * Fix(fs): Use `f_frsize` for calculations (a682d2a) * Fix(date): Remove date string length limitation (#745), see #754 * Fix(renderer): Nested actions (#772), see #760 and #758 * Fix(i3): Check and warn if current workspace not found (#826), see #824 * Fix(github): Prevent module disappearing with no connection (#811), see #810 * Fix(renderer): Module gradients (#831), see #759 * Fix(build): Update deprecated jsoncpp Reader
2017-12-03 17:03:49 +00:00
pkgver=3.1.0
pkgrel=3
2016-11-20 02:00:31 +00:00
pkgdesc="A fast and easy-to-use status bar"
arch=("i686" "x86_64")
url="https://github.com/jaagr/polybar"
license=("MIT")
2017-09-12 03:26:00 +00:00
depends=("cairo" "xcb-util-image" "xcb-util-wm" "xcb-util-xrm" "xcb-util-cursor")
2018-01-20 21:56:01 +00:00
optdepends=("alsa-lib: alsa module support"
"pulseaudio: pulseaudio module support"
2016-11-20 02:00:31 +00:00
"libmpdclient: mpd module support"
2018-06-19 11:33:58 +00:00
"libnl: network module support"
"wireless_tools: network module support (legacy)"
2016-11-20 02:00:31 +00:00
"jsoncpp: i3 module support"
"i3-wm: i3 module support"
"ttf-unifont: Font used in example config"
2016-12-23 16:04:38 +00:00
"siji-git: Font used in example config"
"curl: github module support")
2017-01-26 01:37:58 +00:00
makedepends=("cmake" "git" "python" "python2" "pkg-config")
2016-11-20 02:00:31 +00:00
provides=("polybar")
2017-01-27 03:15:41 +00:00
conflicts=("polybar")
2017-01-02 01:32:16 +00:00
install="${_pkgname}.install"
2016-11-20 02:00:31 +00:00
source=("${_pkgname}::git+${url}.git")
md5sums=("SKIP")
pkgver() {
2017-01-27 03:15:41 +00:00
git -C "${_pkgname}" describe --long --tags | sed "s/-/.r/;s/-/./g"
2016-11-20 02:00:31 +00:00
}
prepare() {
2017-01-27 03:15:41 +00:00
git -C "${_pkgname}" submodule update --init --recursive
mkdir -p "${_pkgname}/build"
2016-11-20 02:00:31 +00:00
}
build() {
2017-01-27 03:15:41 +00:00
cd "${_pkgname}/build" || exit 1
2016-12-23 16:04:38 +00:00
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
2017-01-27 03:15:41 +00:00
cmake --build .
2016-11-20 02:00:31 +00:00
}
package() {
2017-01-27 03:15:41 +00:00
cmake --build "${_pkgname}/build" --target install -- DESTDIR="${pkgdir}"
install -Dm644 "${_pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
2016-11-20 02:00:31 +00:00
}