[arch-commits] Commit in polybar/repos (community-x86_64 community-x86_64/PKGBUILD)
Leonidas Spyropoulos
artafinde at gemini.archlinux.org
Mon May 9 11:26:15 UTC 2022
Date: Monday, May 9, 2022 @ 11:26:15
Author: artafinde
Revision: 1196363
archrelease: copy trunk to community-x86_64
Added:
polybar/repos/community-x86_64/
polybar/repos/community-x86_64/PKGBUILD
(from rev 1196362, polybar/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: polybar/repos/community-x86_64/PKGBUILD (from rev 1196362, polybar/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2022-05-09 11:26:15 UTC (rev 1196363)
@@ -0,0 +1,45 @@
+# Maintainer: Leonidas Spyropoulos <artafinde at archlinux.org>
+# Contributor: Patrick Ziegler <p.ziegler96 at gmail.com>
+
+pkgname=polybar
+pkgver=3.6.3
+pkgrel=1
+pkgdesc="A fast and easy-to-use status bar"
+arch=('x86_64')
+url="https://github.com/polybar/polybar"
+backup=("etc/polybar/config.ini")
+license=("MIT")
+depends=("libuv" "cairo" "xcb-util-image" "xcb-util-wm" "xcb-util-xrm" "xcb-util-cursor"
+ "alsa-lib" "libpulse" "libmpdclient" "libnl" "jsoncpp" "curl")
+makedepends=("cmake" "python" "pkg-config" "python-sphinx" "python-packaging" "i3-wm"
+ "ninja" "git")
+optdepends=("i3-wm: i3 module support")
+options=(debug)
+source=(${pkgname}-${pkgver}::${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('f25758573567208fc7b6f4d4115a6117a87389cbcc094cf605d079775be95fa5')
+
+build() {
+ cd "${pkgname}-${pkgver}"
+ cmake \
+ -Bbuild \
+ -GNinja \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_DOC_HTML=OFF \
+ -DBUILD_TESTS=ON \
+ -DPYTHON_EXECUTABLE=/usr/bin/python3
+ cmake --build build --verbose
+}
+
+check() {
+ cd "${pkgname}-${pkgver}"
+ ninja check -C build
+}
+
+package() {
+ cd "${pkgname}-${pkgver}"
+ DESTDIR="${pkgdir}" cmake --install build
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim:set ft=sh sw=2 sts=2 et:
More information about the arch-commits
mailing list