1 # Maintainer: Leonidas Spyropoulos <artafinde@archlinux.org>
2 # Contributor: Patrick Ziegler <p.ziegler96@gmail.com>
7 pkgdesc="A fast and easy-to-use status bar"
9 url="https://github.com/polybar/polybar"
10 backup=("etc/polybar/config.ini")
12 depends=("libuv" "cairo" "xcb-util-image" "xcb-util-wm" "xcb-util-xrm" "xcb-util-cursor"
13 "alsa-lib" "libpulse" "libmpdclient" "libnl" "jsoncpp" "curl")
14 makedepends=("cmake" "python" "pkg-config" "python-sphinx" "python-packaging" "i3-wm"
16 optdepends=("i3-wm: i3 module support")
17 source=("${pkgname}-${pkgver}.tar.gz::${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz"
18 "${pkgname}-${pkgver}.tar.gz.asc::${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz.asc")
19 sha256sums=('f25758573567208fc7b6f4d4115a6117a87389cbcc094cf605d079775be95fa5'
21 validpgpkeys=('1D5791352D51A228D4DDDBA4521E5E03AEBCA1A7') # Patrick Ziegler <p.ziegler96@gmail.com>
24 cd "${pkgname}-${pkgver}"
25 # Broken tests from executing inside systemd-nspawn
26 sed -i 's/is_async/DISABLED_is_async/' \
27 tests/unit_tests/utils/process.cpp
31 cd "${pkgname}-${pkgver}"
35 -DCMAKE_BUILD_TYPE=Release \
36 -DCMAKE_INSTALL_PREFIX=/usr \
37 -DBUILD_DOC_HTML=OFF \
39 -DPYTHON_EXECUTABLE=/usr/bin/python3
40 cmake --build build --verbose
44 cd "${pkgname}-${pkgver}"
49 cd "${pkgname}-${pkgver}"
50 DESTDIR="${pkgdir}" cmake --install build
51 install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
54 # vim:set ft=sh sw=2 sts=2 et: