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-05-04 09:39:06 +00:00
|
|
|
pkgver=3.6.3
|
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"
|
2022-03-01 18:36:25 +00:00
|
|
|
# aarch64 is not officially supported by polybar, it is only listed here for convenience
|
|
|
|
arch=("i686" "x86_64" "aarch64")
|
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")
|
2022-03-01 18:36:25 +00:00
|
|
|
makedepends=("cmake" "python" "pkg-config" "python-sphinx" "python-packaging" "i3-wm")
|
2022-04-30 21:03:00 +00:00
|
|
|
backup=("etc/polybar/config.ini")
|
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-05-04 09:39:06 +00:00
|
|
|
sha256sums=('f25758573567208fc7b6f4d4115a6117a87389cbcc094cf605d079775be95fa5')
|
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
|
|
|
}
|