summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9944821d211074e878104e5bb4a2950c0e59c041 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: only_vip <onlyme_vip@protonmail.com>
# Contributor: Tux <tux@hardwaretisch.de>
pkgname=polybar
pkgver=3.5.7
pkgrel=2
pkgdesc="A fast and easy-to-use status bar"
arch=("i686" "x86_64")
url="https://github.com/polybar/polybar"
license=("MIT")
depends=('libasound2' 'libatomic1' 'libc6' 'libcairo2' 'libcurl4' 'libfontconfig1' 'libfreetype6' 'libgcc-s1' 'libmpdclient2' 'libnl-3-200' 'libpulse0' 'libstdc++6' 'libxcb-composite0' 'libxcb-cursor0' 'libxcb-ewmh2' 'libxcb-icccm4' 'libxcb-image0' 'libxcb-randr0-dev' 'libxcb-xkb1' 'libxcb-xrm0' 'libxcb1')
bullseye_depends=(${depends[@]} 'libjsoncpp24')
bookworm_depends=(${depends[@]} 'libjsoncpp24')
focal_depends=(${depends[@]} 'libjsoncpp1')
groovy_depends=(${depends[@]} 'libjsoncpp1')
hirsute_depends=(${depends[@]} 'libjsoncpp24')
impish_depends=(${depends[@]} 'libjsoncpp24')
makedepends=('cmake' 'cmake-data' 'libcairo2-dev' 'libxcb1-dev' 'libxcb-ewmh-dev' 'libxcb-icccm4-dev' 'libxcb-image0-dev' 'libxcb-randr0-dev' 'libxcb-util0-dev' 'libxcb-xkb-dev' 'pkg-config' 'python3-xcbgen' 'xcb-proto' 'libxcb-xrm-dev' 'i3-wm' 'libasound2-dev' 'libmpdclient-dev' 'libiw-dev' 'libcurl4-openssl-dev' 'libpulse-dev' 'libjsoncpp-dev' 'python3-sphinx' 'python3-packaging' 'libxcb-composite0-dev' 'asciidoc' 'docbook' 'docbook2x' 'libpulse-dev')
optdepends=('ttf-unifont' 'i3-wm' 'i3-gaps-git' 'siji-git')
provides=('polybar')
conflicts=('polybar')
source=("${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha512sums=('e8f8fdf1ad3ad78dd9fb4eb2ec4b976b1b80edaac1cf91f22deb8e031f66854460ffc1f9f2ba591829fc6c3b990da7c9ae9b8c5777e113b2929b84d36573bc19')
_dir="${pkgname}-${pkgver}"

build() {
	install -d "${_dir}/build"
	cd ${_dir}/build || exit 1
	cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/bin/python3 ..
	cmake build .
}

package() {
	cmake --build "${_dir}/build" --target install -- DESTDIR="${pkgdir}"
  	install -Dm644 "${_dir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}