1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-11 13:50:56 -05:00
polybar/contrib/polybar.aur/PKGBUILD

36 lines
1.2 KiB
Text
Raw Normal View History

2016-11-19 21:00:31 -05:00
# Maintainer: Michael Carlberg <c@rlberg.se>
# Contributor: Michael Carlberg <c@rlberg.se>
pkgname=polybar
2019-10-30 09:07:34 -04:00
pkgver=3.4.1
pkgrel=1
2016-11-19 21:00:31 -05:00
pkgdesc="A fast and easy-to-use status bar"
arch=("i686" "x86_64")
url="https://github.com/polybar/polybar"
2016-11-19 21:00:31 -05:00
license=("MIT")
depends=("cairo" "xcb-util-image" "xcb-util-wm" "xcb-util-xrm" "xcb-util-cursor"
"alsa-lib" "libpulse" "libmpdclient" "libnl" "jsoncpp" "curl")
optdepends=("i3-wm: i3 module support"
"ttf-unifont: Font used in example config"
2016-12-23 11:04:38 -05:00
"siji-git: Font used in example config"
"xorg-fonts-misc: Font used in example config")
2019-10-30 09:07:34 -04:00
makedepends=("cmake" "git" "python" "pkg-config" "python-sphinx" "i3-wm")
2017-01-26 22:15:41 -05:00
conflicts=("polybar-git")
2017-01-01 20:32:16 -05:00
install="${pkgname}.install"
2019-01-08 11:05:56 -05:00
source=(${url}/releases/download/${pkgver}/polybar-${pkgver}.tar)
2019-10-30 09:07:34 -04:00
sha256sums=('9e37fa48a1027881f14546f2b4f6ace4c91d09a20a293685f845da9cbaedc4eb')
2016-11-19 21:00:31 -05:00
prepare() {
2017-01-26 22:15:41 -05:00
mkdir -p "${pkgname}/build"
2016-11-19 21:00:31 -05:00
}
build() {
2017-01-26 22:15:41 -05:00
cd "${pkgname}/build" || exit 1
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 12:03:49 -05:00
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
2017-01-26 22:15:41 -05:00
cmake --build .
2016-11-19 21:00:31 -05:00
}
package() {
2017-01-26 22:15:41 -05:00
cmake --build "${pkgname}/build" --target install -- DESTDIR="${pkgdir}"
install -Dm644 "${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
2016-11-19 21:00:31 -05:00
}