upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / polybar / trunk / PKGBUILD
blobae2691aea09338ac736e489dec64265e245c4a6e
1 # Maintainer: Leonidas Spyropoulos <artafinde@archlinux.org>
2 # Contributor: Patrick Ziegler <p.ziegler96@gmail.com>
4 pkgname=polybar
5 pkgver=3.6.3
6 pkgrel=3
7 pkgdesc="A fast and easy-to-use status bar"
8 arch=('x86_64')
9 url="https://github.com/polybar/polybar"
10 backup=("etc/polybar/config.ini")
11 license=("MIT")
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"
15              "ninja" "git")
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'
20             'SKIP')
21 validpgpkeys=('1D5791352D51A228D4DDDBA4521E5E03AEBCA1A7') # Patrick Ziegler <p.ziegler96@gmail.com>
23 prepare() {
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
30 build() {
31   cd "${pkgname}-${pkgver}"
32   cmake \
33     -Bbuild \
34     -GNinja \
35     -DCMAKE_BUILD_TYPE=Release \
36     -DCMAKE_INSTALL_PREFIX=/usr \
37     -DBUILD_DOC_HTML=OFF \
38     -DBUILD_TESTS=ON \
39     -DPYTHON_EXECUTABLE=/usr/bin/python3
40   cmake --build build --verbose
43 check() {
44   cd "${pkgname}-${pkgver}"
45   ninja check -C build
48 package() {
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: