polybar-dwm/contrib/polybar.aur/PKGBUILD

35 lines
1.2 KiB
Bash
Raw Normal View History

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
2020-05-14 21:28:45 +00:00
pkgver=3.4.3
2019-10-30 13:07:34 +00:00
pkgrel=1
2016-11-20 02:00:31 +00:00
pkgdesc="A fast and easy-to-use status bar"
arch=("i686" "x86_64")
url="https://github.com/polybar/polybar"
2016-11-20 02:00:31 +00:00
license=("MIT")
depends=("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"
"ttf-unifont: Font used in example config"
2016-12-23 16:04:38 +00:00
"siji-git: Font used in example config"
"xorg-fonts-misc: Font used in example config")
makedepends=("cmake" "git" "python" "pkg-config" "python-sphinx" "i3-wm")
2017-01-27 03:15:41 +00:00
conflicts=("polybar-git")
2017-01-02 01:32:16 +00:00
install="${pkgname}.install"
2019-01-08 16:05:56 +00:00
source=(${url}/releases/download/${pkgver}/polybar-${pkgver}.tar)
2020-05-14 21:28:45 +00:00
sha256sums=('d4ed121c1d3960493f8268f966d65a94d94c4646a4abb131687e37b63616822f')
2016-11-20 02:00:31 +00:00
prepare() {
2017-01-27 03:15:41 +00:00
mkdir -p "${pkgname}/build"
2016-11-20 02:00:31 +00:00
}
build() {
2017-01-27 03:15:41 +00:00
cd "${pkgname}/build" || exit 1
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
2017-01-27 03:15:41 +00:00
cmake --build .
2016-11-20 02:00:31 +00:00
}
package() {
2017-01-27 03:15:41 +00:00
cmake --build "${pkgname}/build" --target install -- DESTDIR="${pkgdir}"
install -Dm644 "${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
2016-11-20 02:00:31 +00:00
}