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
|
2022-03-01 18:36:25 +00:00
|
|
|
pkgver=3.6.0
|
2021-05-23 23:19:10 +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")
|
2022-03-01 18:36:25 +00:00
|
|
|
depends=("libuv" "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")
|
|
|
|
makedepends=("cmake" "git" "python" "pkg-config" "python-sphinx"
|
|
|
|
"python-packaging" "i3-wm")
|
2017-01-27 03:15:41 +00:00
|
|
|
conflicts=("polybar-git")
|
2020-12-12 12:35:35 +00:00
|
|
|
source=(${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz)
|
2022-03-01 18:36:25 +00:00
|
|
|
sha256sums=('563473d5ae2b83d4dba6372f85cbcfd8d5a271b4cf3345ff57acff9c81e1b065')
|
2020-12-12 12:35:35 +00:00
|
|
|
_dir="${pkgname}-${pkgver}"
|
2016-11-20 02:00:31 +00:00
|
|
|
|
|
|
|
prepare() {
|
2020-12-12 12:35:35 +00:00
|
|
|
mkdir -p "${_dir}/build"
|
2016-11-20 02:00:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2020-12-12 12:35:35 +00:00
|
|
|
cd "${_dir}/build" || exit 1
|
2020-12-02 21:00:15 +00:00
|
|
|
# Force cmake to use system python (to detect xcbgen)
|
2021-05-23 23:19:10 +00:00
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/bin/python3 ..
|
2017-01-27 03:15:41 +00:00
|
|
|
cmake --build .
|
2016-11-20 02:00:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-12-12 12:35:35 +00:00
|
|
|
cmake --build "${_dir}/build" --target install -- DESTDIR="${pkgdir}"
|
|
|
|
install -Dm644 "${_dir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
2016-11-20 02:00:31 +00:00
|
|
|
}
|