2019-11-01 10:20:36 +00:00
|
|
|
# Maintainer: Patrick Ziegler <p.ziegler96@gmail.com>
|
2016-11-20 02:00:31 +00:00
|
|
|
pkgname=polybar
|
2020-05-14 21:28:45 +00:00
|
|
|
pkgver=3.4.3
|
2019-10-30 13:07:34 +00:00
|
|
|
pkgrel=1
|
2016-11-20 02:00:31 +00:00
|
|
|
pkgdesc="A fast and easy-to-use status bar"
|
|
|
|
arch=("i686" "x86_64")
|
2019-05-06 11:51:49 +00:00
|
|
|
url="https://github.com/polybar/polybar"
|
2016-11-20 02:00:31 +00:00
|
|
|
license=("MIT")
|
2019-07-18 14:24:15 +00:00
|
|
|
depends=("cairo" "xcb-util-image" "xcb-util-wm" "xcb-util-xrm" "xcb-util-cursor"
|
2019-07-30 17:40:55 +00:00
|
|
|
"alsa-lib" "libpulse" "libmpdclient" "libnl" "jsoncpp" "curl")
|
2019-07-18 14:24:15 +00:00
|
|
|
optdepends=("i3-wm: i3 module support"
|
2016-11-20 02:06:03 +00:00
|
|
|
"ttf-unifont: Font used in example config"
|
2016-12-23 16:04:38 +00:00
|
|
|
"siji-git: Font used in example config"
|
2019-07-18 14:24:15 +00:00
|
|
|
"xorg-fonts-misc: Font used in example config")
|
2019-12-23 22:50:01 +00:00
|
|
|
makedepends=("cmake" "git" "python" "pkg-config" "python-sphinx" "i3-wm")
|
2017-01-27 03:15:41 +00:00
|
|
|
conflicts=("polybar-git")
|
2017-01-02 01:32:16 +00:00
|
|
|
install="${pkgname}.install"
|
2019-01-08 16:05:56 +00:00
|
|
|
source=(${url}/releases/download/${pkgver}/polybar-${pkgver}.tar)
|
2020-05-14 21:28:45 +00:00
|
|
|
sha256sums=('d4ed121c1d3960493f8268f966d65a94d94c4646a4abb131687e37b63616822f')
|
2016-11-20 02:00:31 +00:00
|
|
|
|
|
|
|
prepare() {
|
2017-01-27 03:15:41 +00:00
|
|
|
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
|
2020-10-31 09:30:52 +00:00
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
|
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
|
|
|
}
|