diff --git a/packages/p/polybar/Pkgfile b/packages/p/polybar/Pkgfile new file mode 100644 index 0000000..e1432ce --- /dev/null +++ b/packages/p/polybar/Pkgfile @@ -0,0 +1,29 @@ +# Description: A fast and easy-to-use status bar +# URL: https://github.com/polybar/polybar +# Maintainer: Alexander Zhirov +# Depends on: cairo xorg-xcb-util-image xorg-xcb-util-wm xcb-util-xrm xorg-xcb-util-cursor cmake git python python3 pkg-config + +name=polybar +version=3.7.1 +release=1 + +source=( + https://github.com/polybar/polybar/releases/download/${version}/${name}-${version}.tar.gz +) + +build() { + + cd $name-$version + + cmake \ + -Bbuild \ + -GNinja \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_DOC_HTML=OFF \ + -DBUILD_TESTS=OFF \ + -DBUILD_DOC=OFF + + cmake --build build --verbose + DESTDIR=$PKG cmake --install build +}